summaryrefslogtreecommitdiff
path: root/exercises/05_vecs/vecs2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/05_vecs/vecs2.rs')
-rw-r--r--exercises/05_vecs/vecs2.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/05_vecs/vecs2.rs b/exercises/05_vecs/vecs2.rs
index d64d3d1..e72209c 100644
--- a/exercises/05_vecs/vecs2.rs
+++ b/exercises/05_vecs/vecs2.rs
@@ -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() {
@@ -26,6 +22,10 @@ fn vec_map(v: &Vec<i32>) -> Vec<i32> {
}).collect()
}
+fn main() {
+ // You can optionally experiment here.
+}
+
#[cfg(test)]
mod tests {
use super::*;