mirror of
https://github.com/rust-lang/book.git
synced 2026-12-01 00:11:20 -06:00
@@ -95,8 +95,8 @@ Inside the `main` function:
|
|||||||
```
|
```
|
||||||
|
|
||||||
This line does all of the work in this little program: it prints text to the
|
This line does all of the work in this little program: it prints text to the
|
||||||
screen. There are a number of details that are important here. The first is
|
screen. There are a number of details to notice here. The first is that Rust
|
||||||
that it’s indented with four spaces, not a tab.
|
style is to indent with four spaces, not a tab.
|
||||||
|
|
||||||
The second important part is `println!`. This is calling a Rust *macro*,
|
The second important part is `println!`. This is calling a Rust *macro*,
|
||||||
which is how metaprogramming is done in Rust. If it were calling a function
|
which is how metaprogramming is done in Rust. If it were calling a function
|
||||||
|
|||||||
Reference in New Issue
Block a user