Skip to content

Commit 30644c9

Browse files
authored
fix: gives a bit more context to magic number
1 parent 033bf11 commit 30644c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/threads/threads1.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// threads1.rs
22
// Make this compile! Execute `rustlings hint threads1` for hints :)
33
// The idea is the thread spawned on line 21 is completing jobs while the main thread is
4-
// monitoring progress until 10 jobs are completed. If you see 6 lines
4+
// monitoring progress until 10 jobs are completed. Because of the difference between the
5+
// spawned threads' sleep time, and the waiting threads sleep time, when you see 6 lines
56
// of "waiting..." and the program ends without timing out when running,
67
// you've got it :)
78

0 commit comments

Comments
 (0)