From ff22e10cda1748acb6f633fb4ffd8d46fb218191 Mon Sep 17 00:00:00 2001 From: Niklas Anderson Date: Fri, 9 Aug 2019 07:28:35 -0700 Subject: [PATCH] fix(iterators2): Remove syntax resulting in misleading error message closes #199 --- exercises/standard_library_types/iterators2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/standard_library_types/iterators2.rs b/exercises/standard_library_types/iterators2.rs index d102dc9760..b25d0d66ad 100644 --- a/exercises/standard_library_types/iterators2.rs +++ b/exercises/standard_library_types/iterators2.rs @@ -9,7 +9,7 @@ pub fn capitalize_first(input: &str) -> String { let mut c = input.chars(); match c.next() { None => String::new(), - Some(first) => first.collect()::() + c.as_str(), + Some(first) => first.collect::() + c.as_str(), } }