We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7aab6 commit 2a889ebCopy full SHA for 2a889eb
src/liballoc/str.rs
@@ -966,8 +966,8 @@ impl str {
966
///
967
/// assert_eq!(s.find(char::is_whitespace), Some(5));
968
/// assert_eq!(s.find(char::is_lowercase), Some(1));
969
- /// assert_eq!(s.find(|c: char| c.is_whitespace()), Some(5));
970
- /// assert_eq!(s.find(|c: char| c.is_lowercase()), Some(1));
+ /// assert_eq!(s.find(|c: char| c.is_whitespace() || c.is_lowercase()), Some(1));
+ /// assert_eq!(s.find(|c: char| (c < 'o') && (c > 'a')), Some(4));
971
/// ```
972
973
/// Not finding the pattern:
0 commit comments