Skip to content

Commit 0134c25

Browse files
authored
Add a note mentioning that semicolons exist (#2660)
1 parent ea53e3c commit 0134c25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types-and-values/hello-world.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ fn main() {
1616
What you see:
1717

1818
- Functions are introduced with `fn`.
19-
- Blocks are delimited by curly braces like in C and C++.
2019
- The `main` function is the entry point of the program.
20+
- Blocks are delimited by curly braces like in C and C++.
21+
- Statements end with `;`.
2122
- Rust has hygienic macros, `println!` is an example of this.
2223
- Rust strings are UTF-8 encoded and can contain any Unicode character.
2324

0 commit comments

Comments
 (0)