You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-30 20:33:46 +02:00
Remove type annotations in move.md
This commit is contained in:
@ -8,8 +8,8 @@ An assignment will transfer _ownership_ between variables:
|
|||||||
|
|
||||||
```rust,editable
|
```rust,editable
|
||||||
fn main() {
|
fn main() {
|
||||||
let s1: String = String::from("Hello!");
|
let s1 = String::from("Hello!");
|
||||||
let s2: String = s1;
|
let s2 = s1;
|
||||||
dbg!(s2);
|
dbg!(s2);
|
||||||
// dbg!(s1);
|
// dbg!(s1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user