summary refs log tree commit diff
path: root/src/libstd/rand
diff options
context:
space:
mode:
authorScott Lawrence <bytbox@gmail.com>2014-01-26 22:42:26 -0500
committerScott Lawrence <bytbox@gmail.com>2014-01-29 09:15:41 -0500
commit25e7e7f8076d879f824f013faa6f7470e69c818b (patch)
tree9acb92473ae0a0f1463901fe97e222e07da55b6b /src/libstd/rand
parentaf218d68e4b4916440ef2b4fc076a7bd8dead892 (diff)
downloadrust-25e7e7f8076d879f824f013faa6f7470e69c818b.tar.gz
rust-25e7e7f8076d879f824f013faa6f7470e69c818b.zip
Removing do keyword from libstd and librustc
Diffstat (limited to 'src/libstd/rand')
-rw-r--r--src/libstd/rand/os.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rand/os.rs b/src/libstd/rand/os.rs
index a8fd75c1bee..c359d79d275 100644
--- a/src/libstd/rand/os.rs
+++ b/src/libstd/rand/os.rs
@@ -159,7 +159,7 @@ mod test {
         for _ in range(0, 20) {
             let (p, c) = Chan::new();
             chans.push(c);
-            do task::spawn {
+            task::spawn(proc() {
                 // wait until all the tasks are ready to go.
                 p.recv();
 
@@ -177,7 +177,7 @@ mod test {
                     r.fill_bytes(v);
                     task::deschedule();
                 }
-            }
+            })
         }
 
         // start all the tasks