summaryrefslogtreecommitdiff
path: root/rustlings-macros/info.toml
diff options
context:
space:
mode:
authorRemo Senekowitsch <remo@buenzli.dev>2025-09-24 20:56:58 +0200
committerRemo Senekowitsch <remo@buenzli.dev>2025-09-24 21:19:40 +0200
commitd8f4b06c91c54bccf934b84560641da3a7f202a8 (patch)
tree0238c533faca7d664b44456d1c92d83dfeeab5ce /rustlings-macros/info.toml
parent2af9e89ba536fad01aa828b06e0ac2174bad0f6d (diff)
Remove use of `map` in early vecs2 exercise
Students do not have the necessary knowledge at this point to understand what's happening with the iterator combinators. This topic is covered well by the dedicated exercises about iterators later. closes #2102
Diffstat (limited to 'rustlings-macros/info.toml')
-rw-r--r--rustlings-macros/info.toml11
1 files changed, 1 insertions, 10 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml
index 516fd32..ca3ecf1 100644
--- a/rustlings-macros/info.toml
+++ b/rustlings-macros/info.toml
@@ -318,16 +318,7 @@ of the Rust book to learn more."""
name = "vecs2"
dir = "05_vecs"
hint = """
-In the first function, we create an empty vector and want to push new elements
-to it.
-
-In the second function, we map the values of the input and collect them into
-a vector.
-
-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?"""
+Use the `.push()` method on the vector to push new elements to it."""
# MOVE SEMANTICS