mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 00:00:03 +03:00
fix(iterators2): Remove syntax resulting in misleading error message
closes #199
This commit is contained in:
parent
e696a07190
commit
4cde86643e
|
@ -9,7 +9,7 @@ pub fn capitalize_first(input: &str) -> String {
|
||||||
let mut c = input.chars();
|
let mut c = input.chars();
|
||||||
match c.next() {
|
match c.next() {
|
||||||
None => String::new(),
|
None => String::new(),
|
||||||
Some(first) => first.collect()::<String>() + c.as_str(),
|
Some(first) => first.collect::<String>() + c.as_str(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue