]> git.lizzy.rs Git - rust.git/commitdiff
std: fix method renaming.
authorHuon Wilson <dbau.pp+github@gmail.com>
Wed, 12 Jun 2013 03:09:02 +0000 (13:09 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 12 Jun 2013 03:09:02 +0000 (13:09 +1000)
src/libstd/str.rs

index 0a61059cb39d633a27f05ee3107f0e746fec2d03..fdf12d406e81f83a5ebb6589f8c4abedb90b9ff6 100644 (file)
@@ -258,7 +258,7 @@ fn only_ascii(&self) -> bool { false }
 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 {