File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ These lines define a *function* in Rust. The `main` function is special:
71
71
it's the beginning of every Rust program. The first line says "I'm declaring a
72
72
function named ` main ` , which takes no arguments and returns nothing." If there
73
73
were arguments, they would go inside the parentheses (` ( ` and ` ) ` ), and because
74
- we aren't returning anything from this function, we've dropped that notation
75
- entirely. We'll get to it later.
74
+ we aren't returning anything from this function, we can omit the return type
75
+ entirely. We'll get to it later.
76
76
77
77
You'll also note that the function is wrapped in curly braces (` { ` and ` } ` ).
78
78
Rust requires these around all function bodies. It is also considered good
You can’t perform that action at this time.
0 commit comments