Skip to content

Commit 4cde866

Browse files
committed
fix(iterators2): Remove syntax resulting in misleading error message
closes #199
1 parent e696a07 commit 4cde866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/standard_library_types/iterators2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn capitalize_first(input: &str) -> String {
99
let mut c = input.chars();
1010
match c.next() {
1111
None => String::new(),
12-
Some(first) => first.collect()::<String>() + c.as_str(),
12+
Some(first) => first.collect::<String>() + c.as_str(),
1313
}
1414
}
1515

0 commit comments

Comments
 (0)