fix(iterators2): Remove syntax resulting in misleading error message

closes #199
This commit is contained in:
Niklas Anderson 2019-08-09 07:28:35 -07:00
parent e696a07190
commit 4cde86643e
1 changed files with 1 additions and 1 deletions

View File

@ -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(),
}
}