mirror of
https://github.com/RustyCab/LearnRustEasy.git
synced 2026-11-02 05:24:20 +08:00
Update chapter_2.md
This commit is contained in:
@@ -152,7 +152,7 @@ cargo new hello_world
|
|||||||
### 2.3.2 编写程序
|
### 2.3.2 编写程序
|
||||||
默认情况下,main.rs文件中已经包含了一个简单的Hello, World程序,代码如下:
|
默认情况下,main.rs文件中已经包含了一个简单的Hello, World程序,代码如下:
|
||||||
|
|
||||||
```
|
```Rust
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello, world!");
|
println!("Hello, world!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user