From 275988037019c0b3130fc740c321fdaf2d967ca6 Mon Sep 17 00:00:00 2001 From: sunface Date: Wed, 2 Mar 2022 16:37:02 +0800 Subject: [PATCH] fix some chinglesh --- src/basic-types/numbers.md | 4 ++-- src/compound-types/string.md | 6 +++--- src/variables.md | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/basic-types/numbers.md b/src/basic-types/numbers.md index 0dd69ba..915a461 100644 --- a/src/basic-types/numbers.md +++ b/src/basic-types/numbers.md @@ -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() { diff --git a/src/compound-types/string.md b/src/compound-types/string.md index 034430e..152165b 100644 --- a/src/compound-types/string.md +++ b/src/compound-types/string.md @@ -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 = "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; diff --git a/src/variables.md b/src/variables.md index 230195e..cb30080 100644 --- a/src/variables.md +++ b/src/variables.md @@ -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