mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-07 02:13:29 +02:00
Clean up and unify exercises
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
// vecs2.rs
|
||||
//
|
||||
// A Vec of even numbers is given. Your task is to complete the loop so that
|
||||
// each number in the Vec is multiplied by 2.
|
||||
//
|
||||
// Make me pass the test!
|
||||
//
|
||||
// Execute `rustlings hint vecs2` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
fn vec_loop(mut v: Vec<i32>) -> Vec<i32> {
|
||||
for element in v.iter_mut() {
|
||||
|
||||
Reference in New Issue
Block a user