Merge pull request #331 from h3n4l/patch-1

docs: update why-exercise.md
This commit is contained in:
Sunface 2022-12-07 08:44:15 +08:00 committed by GitHub
commit 3926318b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,11 +24,11 @@
我们使用 [mdbook](https://rust-lang.github.io/mdBook/) 构建在线练习题,你也可以下载到本地运行:
```shell
$ cargo install mdbook
$ cd rust-by-practice && mdbook serve
$ cd rust-by-practice && mdbook serve zh-CN/
```
在本地win 10或者linux服务器上运行时应当使用 -n 参数指定mdbook服务所监听的IP地址-p 参数指定服务监听的端口不指定则为默认的3000以win 10本地运行为例
```shell
$ mdbook serve -p 8888 -n 127.0.0.1
$ mdbook serve -p 8888 -n 127.0.0.1 zh-CN/
```
## 特性