mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-21 23:45:42 +02:00
Added some speaker notes to variables.md
This commit is contained in:
parent
bee9cdab92
commit
d15a653ed8
@ -11,3 +11,10 @@ fn main() {
|
|||||||
// println!("x: {x}");
|
// println!("x: {x}");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
* It might be worth pointing out quickly that due to type inference the `i32` is optional
|
||||||
|
* Note that since `println!` is a macro, x is not moved, even using the function like syntax of `println!("x: {}", x)`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user