Skip to content

Commit

Permalink
More clarification of blocks (#1706)
Browse files Browse the repository at this point in the history
I believe it would be helpful to further clarify what delimits a block

---------

Co-authored-by: Martin Geisler <[email protected]>
  • Loading branch information
andrewshaodev and mgeisler authored Jan 16, 2024
1 parent 0a1c30e commit 94b5174
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/control-flow-basics/blocks-and-scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 94b5174

Please sign in to comment.