mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-24 06:22:23 -05:00
move_semantics2: Mention cloning in the hint
This commit is contained in:
parent
6263cb6456
commit
47ba4502e0
1 changed files with 1 additions and 1 deletions
|
@ -351,7 +351,7 @@ We call this "moving" a variable. When we pass `vec0` into `fill_vec`, it's
|
||||||
being "moved" into `vec1`, meaning we can't access `vec0` anymore.
|
being "moved" into `vec1`, meaning we can't access `vec0` anymore.
|
||||||
|
|
||||||
You could make another, separate version of the data that's in `vec0` and
|
You could make another, separate version of the data that's in `vec0` and
|
||||||
pass it to `fill_vec` instead."""
|
pass it to `fill_vec` instead. This is called cloning in Rust."""
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "move_semantics3"
|
name = "move_semantics3"
|
||||||
|
|
Loading…
Reference in a new issue