From 94b517461ea5bca98584a3927c14cf09b928454c Mon Sep 17 00:00:00 2001 From: Andrew Shao <132319777+andrewshaodev@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:06:24 -0500 Subject: [PATCH] More clarification of blocks (#1706) I believe it would be helpful to further clarify what delimits a block --------- Co-authored-by: Martin Geisler --- src/control-flow-basics/blocks-and-scopes.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/control-flow-basics/blocks-and-scopes.md b/src/control-flow-basics/blocks-and-scopes.md index 75007fb11196..3e8d685e0fbe 100644 --- a/src/control-flow-basics/blocks-and-scopes.md +++ b/src/control-flow-basics/blocks-and-scopes.md @@ -6,8 +6,9 @@ minutes: 10 ## Blocks -A block in Rust contains a sequence of expressions. Each block has a value and a -type, which are those of the last expression of the block: +A block in Rust contains a sequence of expressions, enclosed by braces `{}`. +Each block has a value and a type, which are those of the last expression of the +block: ```rust,editable fn main() {