Skip to content

Commit

Permalink
fix: gives a bit more context to magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
pcn committed Dec 8, 2020
1 parent 033bf11 commit 30644c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exercises/threads/threads1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// threads1.rs
// 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
// 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,
// you've got it :)

Expand Down

0 comments on commit 30644c9

Please sign in to comment.