diff options
| author | Scott Lawrence <bytbox@gmail.com> | 2014-01-26 22:42:26 -0500 |
|---|---|---|
| committer | Scott Lawrence <bytbox@gmail.com> | 2014-01-29 09:15:41 -0500 |
| commit | 25e7e7f8076d879f824f013faa6f7470e69c818b (patch) | |
| tree | 9acb92473ae0a0f1463901fe97e222e07da55b6b /src/libstd/rt/thread.rs | |
| parent | af218d68e4b4916440ef2b4fc076a7bd8dead892 (diff) | |
| download | rust-25e7e7f8076d879f824f013faa6f7470e69c818b.tar.gz rust-25e7e7f8076d879f824f013faa6f7470e69c818b.zip | |
Removing do keyword from libstd and librustc
Diffstat (limited to 'src/libstd/rt/thread.rs')
| -rw-r--r-- | src/libstd/rt/thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs index d543af1bf9b..83f5ca346a9 100644 --- a/src/libstd/rt/thread.rs +++ b/src/libstd/rt/thread.rs @@ -255,11 +255,11 @@ mod tests { use super::Thread; #[test] - fn smoke() { do Thread::start {}.join(); } + fn smoke() { Thread::start(proc (){}).join(); } #[test] - fn data() { assert_eq!(do Thread::start { 1 }.join(), 1); } + fn data() { assert_eq!(Thread::start(proc () { 1 }).join(), 1); } #[test] - fn detached() { do Thread::spawn {} } + fn detached() { Thread::spawn(proc () {}) } } |
