diff options
Diffstat (limited to 'src/libstd/ascii.rs')
| -rw-r--r-- | src/libstd/ascii.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index ddf7c934a49..c4641eff572 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -235,7 +235,7 @@ impl ToStrConsume for ~[Ascii] { impl IterBytes for Ascii { #[inline] - fn iter_bytes(&self, _lsb0: bool, f: &fn(buf: &[u8]) -> bool) -> bool { + fn iter_bytes(&self, _lsb0: bool, f: |buf: &[u8]| -> bool) -> bool { f([self.to_byte()]) } } |
