summaryrefslogtreecommitdiff
path: root/rustlings-macros
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-07-10 15:55:18 +0200
committermo8it <mo8it@proton.me>2024-07-10 15:55:18 +0200
commit47ba4502e0a60bf720e4c70ff27150bba2d18f8c (patch)
tree9f8412d1f5309f022d13925072c844975047c560 /rustlings-macros
parent6263cb6456d18f142c76ccf69ee0d72ae4db3a8b (diff)
move_semantics2: Mention cloning in the hint
Diffstat (limited to 'rustlings-macros')
-rw-r--r--rustlings-macros/info.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml
index d7bb1ca..e69834a 100644
--- a/rustlings-macros/info.toml
+++ b/rustlings-macros/info.toml
@@ -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.
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]]
name = "move_semantics3"