libstd: Change all uses of &fn(A)->B
over to |A|->B
in libstd
This commit is contained in:
parent
eef913b290
commit
1946265e1a
58 changed files with 270 additions and 236 deletions
|
@ -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()])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue