1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-16 06:10:26 +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

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 `()`.