You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-09-16 09:36:41 +02:00
Fix blocks-and-scopes.md after code review (#2901)
Thanks to @fw-immunant and @qwandor for the comments in #2887.
This commit is contained in:
@@ -4,8 +4,9 @@ minutes: 5
|
|||||||
|
|
||||||
# Blocks and Scopes
|
# Blocks and Scopes
|
||||||
|
|
||||||
A block in Rust contains a sequence of expressions, enclosed by braces {}. The
|
- A block in Rust contains a sequence of expressions, enclosed by braces `{}`.
|
||||||
final expression of a block determines the value and type of the whole block:
|
- The final expression of a block determines the value and type of the whole
|
||||||
|
block.
|
||||||
|
|
||||||
```rust,editable
|
```rust,editable
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Reference in New Issue
Block a user