diff options
| author | Mo Bitar <76752051+mo8it@users.noreply.github.com> | 2025-09-25 16:55:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-25 16:55:36 +0200 |
| commit | f80fbca12e47014a314e5e931678529c28cd9fd8 (patch) | |
| tree | 2d25e5ae39659d2394f55d556a844a14153e98f7 /rustlings-macros/info.toml | |
| parent | 19553133627bf3d645d8ebfd7fffa0e922073f83 (diff) | |
| parent | d8f4b06c91c54bccf934b84560641da3a7f202a8 (diff) | |
Merge pull request #2294 from senekor/senekor/qxykzqyxnnwy
Remove use of `map` in early vecs2 exercise
Diffstat (limited to 'rustlings-macros/info.toml')
| -rw-r--r-- | rustlings-macros/info.toml | 11 |
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 |
