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:
parent
0a1c30ef87
commit
94b517461e
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user