fix some chinglesh
This commit is contained in:
parent
59851ca1bb
commit
2759880370
|
@ -91,7 +91,7 @@ fn main() {
|
|||
}
|
||||
```
|
||||
|
||||
8. ππ use two ways to make it work
|
||||
1. ππ make it work in two distinct ways
|
||||
|
||||
```rust,editable
|
||||
|
||||
|
@ -101,7 +101,7 @@ fn main() {
|
|||
```
|
||||
|
||||
### Range
|
||||
9. ππ two targets: 1. modify `assert!` to make it work 2. make `println!` output: 97 - 122
|
||||
9. ππ two goals: 1. modify `assert!` to make it work 2. make `println!` output: 97 - 122
|
||||
|
||||
```rust,editable
|
||||
fn main() {
|
||||
|
|
|
@ -18,7 +18,7 @@ fn main() {
|
|||
|
||||
```rust,editable
|
||||
|
||||
// fix error with at least two ways
|
||||
// fix the error with at least two solutions
|
||||
fn main() {
|
||||
let s: Box<str> = "hello, world".into();
|
||||
greetings(s)
|
||||
|
@ -94,7 +94,7 @@ Opsite to the seldom using of `str`, `&str` and `String` are used everywhere!
|
|||
ππ `&str` can be converted to `String` in two ways
|
||||
```rust,editable
|
||||
|
||||
// fix error with at lest two ways
|
||||
// fix error with at lest two solutions
|
||||
fn main() {
|
||||
let s = "hello, world";
|
||||
greetings(s)
|
||||
|
@ -109,7 +109,7 @@ fn greetings(s: String) {
|
|||
|
||||
```rust,editable
|
||||
|
||||
// use two ways to fix error and without adding new line
|
||||
// use two approaches to fix the error and without adding a new line
|
||||
fn main() {
|
||||
let s = "hello, world".to_string();
|
||||
let s1: &str = s;
|
||||
|
|
|
@ -94,12 +94,12 @@ fn main() {
|
|||
```
|
||||
|
||||
### Unused varibles
|
||||
7. fix the warning below with :
|
||||
1. fix the warning below with :
|
||||
|
||||
- π one way
|
||||
- ππ two ways
|
||||
- π only one solution
|
||||
- ππ two distinct solutions
|
||||
|
||||
> Note: there are two ways you can use, but none of them is removing the line `let x = 1`
|
||||
> Note: none of the solutions is to remove the line `let x = 1`
|
||||
|
||||
```rust,editable
|
||||
|
||||
|
|
Loadingβ¦
Reference in New Issue