Skip to content

Commit ea28015

Browse files
committed
Merge pull request #21011 from steveklabnik/gh20993
Small grammar fix in the book Reviewed-by: alexcrichton
2 parents 8ad4c8d + ba9e223 commit ea28015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/trpl/hello-world.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ These lines define a *function* in Rust. The `main` function is special:
7171
it's the beginning of every Rust program. The first line says "I'm declaring a
7272
function named `main`, which takes no arguments and returns nothing." If there
7373
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.
7676

7777
You'll also note that the function is wrapped in curly braces (`{` and `}`).
7878
Rust requires these around all function bodies. It is also considered good

0 commit comments

Comments
 (0)