mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 22:02:22 -05:00
fix: gives a bit more context to magic number
This commit is contained in:
parent
033bf1198f
commit
30644c9a06
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
// threads1.rs
|
// threads1.rs
|
||||||
// Make this compile! Execute `rustlings hint threads1` for hints :)
|
// Make this compile! Execute `rustlings hint threads1` for hints :)
|
||||||
// The idea is the thread spawned on line 21 is completing jobs while the main thread is
|
// The idea is the thread spawned on line 21 is completing jobs while the main thread is
|
||||||
// monitoring progress until 10 jobs are completed. If you see 6 lines
|
// monitoring progress until 10 jobs are completed. Because of the difference between the
|
||||||
|
// spawned threads' sleep time, and the waiting threads sleep time, when you see 6 lines
|
||||||
// of "waiting..." and the program ends without timing out when running,
|
// of "waiting..." and the program ends without timing out when running,
|
||||||
// you've got it :)
|
// you've got it :)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue