mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-19 17:03:13 +02:00
parent
56757566b3
commit
581f5a4008
@ -34,3 +34,5 @@ fn main() {
|
|||||||
println!("doubled: {}", double(7));
|
println!("doubled: {}", double(7));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
However if the last expression ends with `;`, then the resulting value and type is `()`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user