From 47ba4502e0a60bf720e4c70ff27150bba2d18f8c Mon Sep 17 00:00:00 2001 From: mo8it Date: Wed, 10 Jul 2024 15:55:18 +0200 Subject: move_semantics2: Mention cloning in the hint --- rustlings-macros/info.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rustlings-macros') 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" -- cgit v1.2.3