summaryrefslogtreecommitdiff
path: root/info.toml
diff options
context:
space:
mode:
authormokou <mokou@fastmail.com>2022-07-12 15:05:47 +0200
committermokou <mokou@fastmail.com>2022-07-12 15:05:47 +0200
commit8e1f617d3402cb05b05c6737f60fbbfe74da4d78 (patch)
treec771ea375a82d6e3dd65f28fad3978c7b7aacfbe /info.toml
parent7af12ba9aa45b57730b92cc00c3ddaa1527eb31f (diff)
feat(vec): update vec exercises
Diffstat (limited to 'info.toml')
-rw-r--r--info.toml12
1 files changed, 9 insertions, 3 deletions
diff --git a/info.toml b/info.toml
index 717ea95..af4861c 100644
--- a/info.toml
+++ b/info.toml
@@ -260,9 +260,15 @@ name = "vec2"
path = "exercises/collections/vec2.rs"
mode = "test"
hint = """
-Hint 1: `i` is each element from the Vec as they are being iterated.
- Can you try multiplying this?
-Hint 2: Check the suggestion from the compiler error ;)
+Hint 1: `i` is each element from the Vec as they are being iterated. Can you try
+multiplying this?
+
+Hint 2: For the first function, there's a way to directly access the numbers stored
+in the Vec, using the * dereference operator. You can both access and write to the
+number that way.
+
+After you've completed both functions, decide for yourself which approach you like
+better. What do you think is the more commonly used pattern under Rust developers?
"""
# MOVE SEMANTICS