summaryrefslogtreecommitdiff
path: root/exercises/threads/threads1.rs
diff options
context:
space:
mode:
authorPeter N <spacey-github.com@ssr.com>2020-12-08 06:08:25 -0300
committerGitHub <noreply@github.com>2020-12-08 10:08:25 +0100
commit30644c9a062b825c0ea89435dc59f0cad86b110e (patch)
tree569642c3156d8036f0b9ebfd9e467cfb99aba65a /exercises/threads/threads1.rs
parent033bf1198fc8bfce1b570e49da7cde010aa552e3 (diff)
fix: gives a bit more context to magic number
Diffstat (limited to 'exercises/threads/threads1.rs')
-rw-r--r--exercises/threads/threads1.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/exercises/threads/threads1.rs b/exercises/threads/threads1.rs
index 1785e8c..b475b4a 100644
--- a/exercises/threads/threads1.rs
+++ b/exercises/threads/threads1.rs
@@ -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 :)