Skip to content

Commit

Permalink
fix(iterators2): Remove syntax resulting in misleading error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nkanderson authored and xymopen committed Oct 14, 2019
1 parent e0db987 commit ffb10e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/standard_library_types/iterators2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()::<String>() + c.as_str(),
Some(first) => first.collect::<String>() + c.as_str(),
}
}

Expand Down

0 comments on commit ffb10e9

Please sign in to comment.