fix some typos

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter
2022-07-11 00:21:52 +08:00
parent 68ab163a65
commit 2eeb2124ef
18 changed files with 23 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
# panic!
The simplest error handling mechanism is to use `panic`. It just prints an error message and starts unwinding the stack, finally exit the current thread:
- if panic occured in `main` thread, then the program will be exited.
- if panic occurred in `main` thread, then the program will be exited.
- if in spawned thread, then this thread will be terminated, but the program won't
@@ -16,13 +16,13 @@ fn drink(beverage: &str) {
__
}
println!("Excercise Failed if printing out this line!");
println!("Exercise Failed if printing out this line!");
}
fn main() {
drink(__);
println!("Excercise Failed if printing out this line!");
println!("Exercise Failed if printing out this line!");
}
```