Skip to content

Commit

Permalink
Update ch01-02-hello-world.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xScratch authored and carols10cents committed Nov 9, 2023
1 parent 44c7838 commit 98f0eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch01-02-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ first line declares a function named `main` that has no parameters and returns
nothing. If there were parameters, they would go inside the parentheses `()`.

The function body is wrapped in `{}`. Rust requires curly brackets around all
function bodies. It’s a good style to place the opening curly bracket on the same
function bodies. It’s good style to place the opening curly bracket on the same
line as the function declaration, adding one space in between.

> Note: If you want to stick to a standard style across Rust projects, you can
Expand Down Expand Up @@ -198,4 +198,4 @@ code. Next, we’ll introduce you to the Cargo tool, which will help you write
real-world Rust programs.

[troubleshooting]: ch01-01-installation.md#troubleshooting
[devtools]: appendix-04-useful-development-tools.md
[devtools]: appendix-04-useful-development-tools.html

0 comments on commit 98f0eef

Please sign in to comment.