1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-15 15:16:51 +02:00

Remove confusing text in variables.md (#1070)

We have not yet talked about copy/move here, so the notes were confusing.

Fixes #519.
This commit is contained in:
Martin Geisler 2023-08-13 15:24:57 +02:00 committed by GitHub
parent 2a1ba6eeff
commit cd5705674a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,5 @@ fn main() {
<details>
* Due to type inference the `i32` is optional. We will gradually show the types less and less as the course progresses.
* Note that since `println!` is a macro, `x` is not moved, even using the function like syntax of `println!("x: {}", x)`
</details>