修复文档小错误

1.代码没有格式化,前面多了空格
pull/1058/head
kkoang 2 years ago committed by GitHub
parent 91c3117c2b
commit ea88721e5f
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