We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ad4c8d + ba9e223 commit ea28015Copy full SHA for ea28015
src/doc/trpl/hello-world.md
@@ -71,8 +71,8 @@ These lines define a *function* in Rust. The `main` function is special:
71
it's the beginning of every Rust program. The first line says "I'm declaring a
72
function named `main`, which takes no arguments and returns nothing." If there
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.
+we aren't returning anything from this function, we can omit the return type
+entirely. We'll get to it later.
76
77
You'll also note that the function is wrapped in curly braces (`{` and `}`).
78
Rust requires these around all function bodies. It is also considered good
0 commit comments