diff options
| author | Todd Thomas <todd.thomas@openlogic.com> | 2015-11-16 17:52:41 -0700 |
|---|---|---|
| committer | Todd Thomas <todd.thomas@openlogic.com> | 2015-11-16 17:52:41 -0700 |
| commit | b345aa9cbf4881577f90f199a5a05b51a4ceda59 (patch) | |
| tree | fb34906409a750cb66759d2cf57c813eed4878ce /move_semantics/move_semantics1.rs | |
| parent | dbad16021cec2a842f5c8d6b9a28ba2039044cb8 (diff) | |
Fix typo in hint for move_semantics1.rs.
When I compile the unedited example in the playground, I get the
error on line 10, not line 8. That's the case for stable, beta,
and nightly.
Diffstat (limited to 'move_semantics/move_semantics1.rs')
| -rw-r--r-- | move_semantics/move_semantics1.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/move_semantics/move_semantics1.rs b/move_semantics/move_semantics1.rs index f109765..a69ff90 100644 --- a/move_semantics/move_semantics1.rs +++ b/move_semantics/move_semantics1.rs @@ -37,6 +37,6 @@ fn fill_vec(vec: Vec<i32>) -> Vec<i32> { -// So you've got the "cannot borrow immutable local variable `vec1` as mutable" error on line 8, -// right? The fix for this is going to be adding one keyword, and the addition is NOT on line 8 +// So you've got the "cannot borrow immutable local variable `vec1` as mutable" error on line 10, +// right? The fix for this is going to be adding one keyword, and the addition is NOT on line 10 // where the error is. |
