1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-09 12:13:52 +02:00

More clarification of blocks (#1706)

I believe it would be helpful to further clarify what delimits a block

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
This commit is contained in:
Andrew Shao 2024-01-16 09:06:24 -05:00 committed by GitHub
parent 0a1c30ef87
commit 94b517461e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {