mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 03:38:09 -05:00
info.toml: update threads2 text.
the previous text does not appear in the provided link (https://doc.rust-lang.org/book/ch16-03-shared-state.html#atomic-reference-counting-with-arct).
This commit is contained in:
parent
64035f766f
commit
af76794627
1 changed files with 1 additions and 1 deletions
|
@ -1009,7 +1009,7 @@ and keep reading if you'd like more hints :)
|
|||
Do you now have an `Arc` `Mutex` `JobStatus` at the beginning of main? Like:
|
||||
`let status = Arc::new(Mutex::new(JobStatus { jobs_completed: 0 }));`
|
||||
Similar to the code in the example in the book that happens after the text
|
||||
that says "We can use Arc<T> to fix this.". If not, give that a try! If you
|
||||
that says "Sharing a Mutex<T> Between Multiple Threads". If not, give that a try! If you
|
||||
do and would like more hints, keep reading!!
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue