From 7590bcc92731285da99a4a77695106007f3ccf94 Mon Sep 17 00:00:00 2001 From: Nathan Stocks Date: Mon, 8 Nov 2021 14:56:57 -0700 Subject: [PATCH] remove example solution code that made it into the main branch --- exercise/closures_iterators/src/main.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/exercise/closures_iterators/src/main.rs b/exercise/closures_iterators/src/main.rs index 20ffc06..92b176e 100644 --- a/exercise/closures_iterators/src/main.rs +++ b/exercise/closures_iterators/src/main.rs @@ -31,11 +31,6 @@ fn main() { // } // println!("{:?}", numbers); // should print [3, 6, 9, 12] - let mut numbers = vec![1, 2, 3, 4]; - numbers.iter_mut().for_each(|x| *x *= 3); - println!("{:?}", numbers); // should print [3, 6, 9, 12] - - // 4. Uncomment the code below. Take the vector of words and // - Convert the vector into an iterator with .into_iter() // - Use .filter() to remove any word that contains the letter "h" -- use .contains()