Merge pull request #1471 from az0977776/patch-2

docs: update line numbers in move_semantics2
This commit is contained in:
liv 2023-05-02 11:15:33 +00:00 committed by GitHub
commit 9a6e57eec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
// move_semantics2.rs // move_semantics2.rs
// Make me compile without changing line 17 or moving line 14!
// Execute `rustlings hint move_semantics2` or use the `hint` watch subcommand for a hint. // Execute `rustlings hint move_semantics2` or use the `hint` watch subcommand for a hint.
// Expected output: // Expected output:
@ -11,6 +10,7 @@
fn main() { fn main() {
let vec0 = Vec::new(); let vec0 = Vec::new();
// Do not move the following line!
let mut vec1 = fill_vec(vec0); let mut vec1 = fill_vec(vec0);
// Do not change the following line! // Do not change the following line!