diff --git a/regex-lite/src/string.rs b/regex-lite/src/string.rs index af0a5b629..4e4de9068 100644 --- a/regex-lite/src/string.rs +++ b/regex-lite/src/string.rs @@ -2063,7 +2063,6 @@ impl<'h, 'n> core::ops::Index<&'n str> for Captures<'h> { /// This example shows how to create and use `CaptureLocations` in a search. /// /// ``` -/// # if !cfg!(target_pointer_width = "64") { return; } // see #1041 /// use regex_lite::Regex; /// /// let re = Regex::new(r"(?\w+)\s+(?\w+)").unwrap(); @@ -2076,7 +2075,10 @@ impl<'h, 'n> core::ops::Index<&'n str> for Captures<'h> { /// /// // Asking for an invalid capture group always returns None. /// assert_eq!(None, locs.get(3)); +/// # // literals are too big for 32-bit usize: #1041 +/// # #[cfg(target_pointer_width = "64")] /// assert_eq!(None, locs.get(34973498648)); +/// # #[cfg(target_pointer_width = "64")] /// assert_eq!(None, locs.get(9944060567225171988)); /// ``` #[derive(Clone, Debug)]