Merge branch 'master' of https://github.com/sunface/rust-by-practice into editing

This commit is contained in:
Tanish-Eagle 2022-07-19 10:52:00 +05:30
commit dddf7c7bf3
5 changed files with 8 additions and 5 deletions

View File

@ -17,7 +17,7 @@
[![LICENSE](https://img.shields.io/badge/license-CC_BY_4.0-green?style=flat)](https://github.com/sunface/rust-by-practice/blob/master/LICENSE)
</div>
This book was designed for easily diving into and get skilled with Rust, and it's very easy to use: All you need to do is to make each exercise compile without ERRORS and Panics !
This book was designed for easily diving into and getting skilled with Rust It's very easy to use. All you need to do is to make each exercise compile without ERRORS and Panics!
## Reading online

View File

@ -99,7 +99,7 @@ fn main() {
```
### Unused variables
1. Fix the warning below with :
7. Fix the warning below with :
- 🌟 Only one solution
- 🌟🌟 Two distinct solutions

View File

@ -52,7 +52,7 @@ fn never_return() -> ! {
// implement this function, don't modify fn signatures
loop {
println!("I return nothing");
// sleeping for 1 second to avoid exhausting the cpu resoucre
// sleeping for 1 second to avoid exhausting the cpu resource
thread::sleep(time::Duration::from_secs(1))
}
}

View File

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

View File

@ -26,7 +26,10 @@
$ cargo install mdbook
$ cd rust-by-practice && mdbook serve
```
在本地win 10或者linux服务器上运行时应当使用 -n 参数指定mdbook服务所监听的IP地址-p 参数指定服务监听的端口不指定则为默认的3000以win 10本地运行为例
```shell
$ mdbook serve -p 8888 -n 127.0.0.1
```
## 特性
部分示例和习题借鉴了 [Rust By Example](https://github.com/rust-lang/rust-by-example), 书中的示例真的非常棒!