Skip to content

Commit

Permalink
issue #43: make example code consistent with text
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Donovan committed Jun 9, 2017
1 parent a53a8f8 commit 6a20bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/thread2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
use std::thread;

fn main() {
let name = "dolly".to_string();
let t = thread::spawn(|| {
println!("hello {}",name);
println!("hello");
});
println!("wait {:?}", t.join());
}

0 comments on commit 6a20bf4

Please sign in to comment.