Fixed hint for move semantics ex. 1 hint

This commit is contained in:
Nick Taylor 2021-08-21 21:42:11 -04:00
parent df25684cb7
commit bfc0c8a1fd

View File

@ -171,7 +171,7 @@ path = "exercises/move_semantics/move_semantics2.rs"
mode = "compile" mode = "compile"
hint = """ hint = """
So `vec0` is being *moved* into the function `fill_vec` when we call it on So `vec0` is being *moved* into the function `fill_vec` when we call it on
line 10, which means it gets dropped at the end of `fill_vec`, which means we line 7, which means it gets dropped at the end of `fill_vec`, which means we
can't use `vec0` again on line 13 (or anywhere else in `main` after the can't use `vec0` again on line 13 (or anywhere else in `main` after the
`fill_vec` call for that matter). We could fix this in a few ways, try them `fill_vec` call for that matter). We could fix this in a few ways, try them
all! all!