fix some chinglesh

This commit is contained in:
sunface 2022-03-02 16:37:02 +08:00
parent 59851ca1bb
commit 2759880370
3 changed files with 9 additions and 9 deletions

View File

@ -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() {

View File

@ -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;

View File

@ -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