mirror of
https://github.com/rust-lang/rustlings
synced 2024-11-20 03:25:32 +00:00
chore(watch): add hint for the exercises README.md
rustlings watch will now show an additional hint for the corresponding README.me
This commit is contained in:
parent
54804e344d
commit
cf42ddc449
@ -264,7 +264,7 @@ fn main() {
|
|||||||
|
|
||||||
fn spawn_watch_shell(failed_exercise_hint: &Arc<Mutex<Option<String>>>) {
|
fn spawn_watch_shell(failed_exercise_hint: &Arc<Mutex<Option<String>>>) {
|
||||||
let failed_exercise_hint = Arc::clone(failed_exercise_hint);
|
let failed_exercise_hint = Arc::clone(failed_exercise_hint);
|
||||||
println!("Type 'hint' to get help or 'clear' to clear the screen");
|
println!("Type 'hint' or open the corresponding README.md file to get help or type 'clear' to clear the screen.");
|
||||||
thread::spawn(move || loop {
|
thread::spawn(move || loop {
|
||||||
let mut input = String::new();
|
let mut input = String::new();
|
||||||
match io::stdin().read_line(&mut input) {
|
match io::stdin().read_line(&mut input) {
|
||||||
|
Loading…
Reference in New Issue
Block a user