mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49:41 +00:00
@ -52,7 +52,7 @@ fn never_return() -> ! {
|
||||
// implement this function, don't modify fn signatures
|
||||
loop {
|
||||
println!("I return nothing");
|
||||
// sleeping for 1 second to avoid exhausting the cpu resoucre
|
||||
// sleeping for 1 second to avoid exhausting the cpu resource
|
||||
thread::sleep(time::Duration::from_secs(1))
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ fn main() {
|
||||
}
|
||||
};
|
||||
|
||||
println!("Excercise Failed if printing out this line!");
|
||||
println!("Exercise Failed if printing out this line!");
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user