These two lines are actually three.
This commit is contained in:
parent
90304ed266
commit
d36ac4def5
@ -164,7 +164,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
These two lines define a **function** in Rust. The `main` function is special:
|
These lines define a **function** in Rust. The `main` function is special:
|
||||||
it's the beginning of every Rust program. The first line says "I'm declaring a
|
it's the beginning of every Rust program. The first line says "I'm declaring a
|
||||||
function named `main`, which takes no arguments and returns nothing." If there
|
function named `main`, which takes no arguments and returns nothing." If there
|
||||||
were arguments, they would go inside the parentheses (`(` and `)`), and because
|
were arguments, they would go inside the parentheses (`(` and `)`), and because
|
||||||
|
Loading…
Reference in New Issue
Block a user