Skip to content

Commit 47ba450

Browse files
committed
move_semantics2: Mention cloning in the hint
1 parent 6263cb6 commit 47ba450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustlings-macros/info.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ We call this "moving" a variable. When we pass `vec0` into `fill_vec`, it's
351351
being "moved" into `vec1`, meaning we can't access `vec0` anymore.
352352
353353
You could make another, separate version of the data that's in `vec0` and
354-
pass it to `fill_vec` instead."""
354+
pass it to `fill_vec` instead. This is called cloning in Rust."""
355355

356356
[[exercises]]
357357
name = "move_semantics3"

0 commit comments

Comments
 (0)