1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-19 17:03:13 +02:00

Update blocks.md (#235)

Adding the important note about ";" in blocks.
This commit is contained in:
Igor Petruk 2023-01-23 12:03:06 +00:00 committed by GitHub
parent 56757566b3
commit 581f5a4008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,3 +34,5 @@ fn main() {
println!("doubled: {}", double(7));
}
```
However if the last expression ends with `;`, then the resulting value and type is `()`.