1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-12 11:14:55 +02:00

fix(threads): add hint comments

This commit is contained in:
mokou 2022-07-15 11:59:53 +02:00
parent b4f52cb937
commit f99eafc56f
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// threads1.rs // threads1.rs
// Make this compile and run! Execute 'rustlings hint threads1' for hints :) // Execute `rustlings hint threads1` or use the `hint` watch subcommand for a hint.
// This program should wait until all the spawned threads have finished before exiting. // This program should wait until all the spawned threads have finished before exiting.
// I AM NOT DONE // I AM NOT DONE

View File

@ -1,5 +1,5 @@
// threads2.rs // threads2.rs
// Make this compile! Execute `rustlings hint threads2` for hints :) // Execute `rustlings hint threads2` or use the `hint` watch subcommand for a hint.
// Building on the last exercise, we want all of the threads to complete their work but this time // Building on the last exercise, we want all of the threads to complete their work but this time
// the spawned threads need to be in charge of updating a shared value: JobStatus.jobs_completed // the spawned threads need to be in charge of updating a shared value: JobStatus.jobs_completed