diff options
| author | Carol (Nichols || Goulding) <carol.nichols@gmail.com> | 2018-03-04 14:26:56 -0500 |
|---|---|---|
| committer | Carol (Nichols || Goulding) <carol.nichols@gmail.com> | 2018-03-04 14:26:56 -0500 |
| commit | 956ffa9d7c5203c858db333ff5576244eee076fe (patch) | |
| tree | 7c8cfa21e13071d12d4c66bf8a3da44b723fe914 /move_semantics/move_semantics2.rs | |
| parent | 426e5cf3f5aa7f65fb13d6884c1bf85e3e195ebd (diff) | |
Fix line numbers
Fixes #69.
Diffstat (limited to 'move_semantics/move_semantics2.rs')
| -rw-r--r-- | move_semantics/move_semantics2.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/move_semantics/move_semantics2.rs b/move_semantics/move_semantics2.rs index 6e676d1..bc42d8e 100644 --- a/move_semantics/move_semantics2.rs +++ b/move_semantics/move_semantics2.rs @@ -1,5 +1,5 @@ // move_semantics2.rs -// Make me compile without changing line 9! Scroll down for hints :) +// Make me compile without changing line 10! Scroll down for hints :) pub fn main() { let vec0 = Vec::new(); @@ -39,8 +39,8 @@ fn fill_vec(vec: Vec<i32>) -> Vec<i32> { // So `vec0` is being *moved* into the function `fill_vec` when we call it on -// line 6, which means it gets dropped at the end of `fill_vec`, which means we -// can't use `vec0` again on line 9 (or anywhere else in `main` after the +// line 7, which means it gets dropped at the end of `fill_vec`, which means we +// can't use `vec0` again on line 10 (or anywhere else in `main` after the // `fill_vec` call for that matter). We could fix this in a few ways, try them // all! // 1. Make another, separate version of the data that's in `vec0` and pass that |
