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:
7171it's the beginning of every Rust program. The first line says "I'm declaring a
7272function named ` main ` , which takes no arguments and returns nothing." If there
7373were 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.
7676
7777You'll also note that the function is wrapped in curly braces (` { ` and ` } ` ).
7878Rust requires these around all function bodies. It is also considered good
You can’t perform that action at this time.
0 commit comments