1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-20 15:08:02 +02:00

Remove type annotations in move.md

This commit is contained in:
Nicole LeGare 2025-04-16 16:09:53 -07:00
parent 5211436446
commit b7e65e3749

View File

@ -8,8 +8,8 @@ An assignment will transfer _ownership_ between variables:
```rust,editable
fn main() {
let s1: String = String::from("Hello!");
let s2: String = s1;
let s1 = String::from("Hello!");
let s2 = s1;
dbg!(s2);
// dbg!(s1);
}