From e4544a93e912a0b4922268352ecd1d8b0b1ad788 Mon Sep 17 00:00:00 2001 From: Nicole LeGare Date: Wed, 26 Feb 2025 16:44:43 -0800 Subject: [PATCH] Add a note mentioning that semicolons exist --- src/types-and-values/hello-world.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types-and-values/hello-world.md b/src/types-and-values/hello-world.md index 5a7b514f30df..b7c6ef746f9d 100644 --- a/src/types-and-values/hello-world.md +++ b/src/types-and-values/hello-world.md @@ -16,8 +16,9 @@ fn main() { What you see: - Functions are introduced with `fn`. -- Blocks are delimited by curly braces like in C and C++. - The `main` function is the entry point of the program. +- Blocks are delimited by curly braces like in C and C++. +- Statements end with `;`. - Rust has hygienic macros, `println!` is an example of this. - Rust strings are UTF-8 encoded and can contain any Unicode character.