1
Fork 0

libstd: rename vec::each(var) to var.each

This commit is contained in:
Youngmin Yoo 2013-05-08 17:49:00 +09:00
parent 472d9f33df
commit d4fa0f1485
11 changed files with 24 additions and 28 deletions

View file

@ -484,7 +484,6 @@ mod tests {
use core::cell::Cell;
use core::task;
use core::vec;
#[test]
fn manually_share_arc() {
@ -683,7 +682,7 @@ mod tests {
}
// Wait for children to pass their asserts
for vec::each(children) |r| {
for children.each |r| {
r.recv();
}
@ -748,7 +747,7 @@ mod tests {
assert!(*state == 42);
*state = 31337;
// send to other readers
for vec::each(reader_convos) |x| {
for reader_convos.each |x| {
match *x {
(ref rc, _) => rc.send(()),
}
@ -757,7 +756,7 @@ mod tests {
let read_mode = arc.downgrade(write_mode);
do (&read_mode).read |state| {
// complete handshake with other readers
for vec::each(reader_convos) |x| {
for reader_convos.each |x| {
match *x {
(_, ref rp) => rp.recv(),
}