Merge pull request #1058 from kkoang/patch-2

修复文档小错误
pull/1063/head
Sunface 2 years ago committed by GitHub
commit 212526cd31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,18 +12,18 @@
```rust ```rust
fn greet_world() { fn greet_world() {
let southern_germany = "Grüß Gott!"; let southern_germany = "Grüß Gott!";
let chinese = "世界,你好"; let chinese = "世界,你好";
let english = "World, hello"; let english = "World, hello";
let regions = [southern_germany, chinese, english]; let regions = [southern_germany, chinese, english];
for region in regions.iter() { for region in regions.iter() {
println!("{}", &region); println!("{}", &region);
} }
} }
fn main() { fn main() {
greet_world(); greet_world();
} }
``` ```
打开终端,进入 `world_hello` 工程根目录,运行该程序。(你也可以在 VSCode 中打开终端,方法是点击 VSCode 上方菜单栏中的终端->新建终端,或者直接使用快捷键打开。) 打开终端,进入 `world_hello` 工程根目录,运行该程序。(你也可以在 VSCode 中打开终端,方法是点击 VSCode 上方菜单栏中的终端->新建终端,或者直接使用快捷键打开。)

Loading…
Cancel
Save