about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/str.rs b/src/libstd/str.rs
index 0a61059cb39..fdf12d406e8 100644
--- a/src/libstd/str.rs
+++ b/src/libstd/str.rs
@@ -258,7 +258,7 @@ impl CharEq for extern "Rust" fn(char) -> bool {
 impl<'self, C: CharEq> CharEq for &'self [C] {
     #[inline(always)]
     fn matches(&self, c: char) -> bool {
-        self.iter().any(|m| m.matches(c))
+        self.iter().any_(|m| m.matches(c))
     }
 
     fn only_ascii(&self) -> bool {