From 0134c25df9766c9ab2bc5d7369290a6e5d8d49f3 Mon Sep 17 00:00:00 2001 From: Nicole L Date: Thu, 27 Feb 2025 12:26:36 -0800 Subject: [PATCH] Add a note mentioning that semicolons exist (#2660) --- 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 5a7b514f..b7c6ef74 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.