mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-09 11:06:18 +02:00
Merge pull request #140 from brandonpollack23/variables
Added some speaker notes to variables.md
This commit is contained in:
commit
9746af91fa
@ -11,3 +11,10 @@ fn main() {
|
|||||||
// println!("x: {x}");
|
// println!("x: {x}");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
* Due to type inference the `i32` is optional. We will gradually show the types less and less as the type progresses.
|
||||||
|
* 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