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
closes #199
  • Loading branch information
nkanderson committed Aug 9, 2019
1 parent e696a07 commit 4cde866
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 4cde866

Please sign in to comment.