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

@ -117,7 +117,7 @@ fn main() {
}
};
println!("Excercise Failed if printing out this line!");
println!("Exercise Failed if printing out this line!");
}
```

View File

@ -246,7 +246,7 @@ fn main() {
```rust
/* Fill in the blank and fix the errror */
// You can aslo use `impl FnOnce(i32) -> i32`
// You can also use `impl FnOnce(i32) -> i32`
fn create_fn() -> impl Fn(i32) -> i32 {
let num = 5;

View File

@ -95,7 +95,7 @@ fn main() {
for bird in birds {
bird.quack();
// when duck and swan turns into Bird, they all forgot how to fly, only remeber how to quack
// when duck and swan turns into Bird, they all forgot how to fly, only remember how to quack
// so, the below code will cause an error
// bird.fly();
}

View File

@ -10,13 +10,13 @@ fn drink(beverage: &str) {
panic!("drinked, duang.....peng!")
}
println!("Excercise Failed if printing out this line!");
println!("Exercise Failed if printing out this line!");
}
fn main() {
drink("lemonade");
println!("Excercise Failed if printing out this line!");
println!("Exercise Failed if printing out this line!");
}
```