Update README.md

remove warning: 
- `variable does not need to be mutable...`
- `unused Result...`
pull/134/head
Mike Shauneu 3 years ago committed by GitHub
parent 062985b1b5
commit f56d005dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -8535,13 +8535,13 @@ So we delete the `std::mem::drop`, and now it is okay. `handle` takes `my_string
```rust
fn main() {
let mut my_string = String::from("Can I go inside the thread?");
let my_string = String::from("Can I go inside the thread?");
let handle = std::thread::spawn(move|| {
println!("{}", my_string);
});
handle.join();
handle.join().unwrap();
}
```

Loading…
Cancel
Save