Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b345aa9

Browse files
author
Todd Thomas
committed
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.
1 parent dbad160 commit b345aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

move_semantics/move_semantics1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ fn fill_vec(vec: Vec<i32>) -> Vec<i32> {
3737

3838

3939

40-
// So you've got the "cannot borrow immutable local variable `vec1` as mutable" error on line 8,
41-
// right? The fix for this is going to be adding one keyword, and the addition is NOT on line 8
40+
// So you've got the "cannot borrow immutable local variable `vec1` as mutable" error on line 10,
41+
// right? The fix for this is going to be adding one keyword, and the addition is NOT on line 10
4242
// where the error is.

0 commit comments

Comments
 (0)