mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-13 21:03:31 +02:00
feat: progress iterators
This commit is contained in:
@@ -7,7 +7,7 @@ fn capitalize_first(input: &str) -> String {
|
||||
let mut chars = input.chars();
|
||||
match chars.next() {
|
||||
None => String::new(),
|
||||
Some(first) => todo!(),
|
||||
Some(first) => char::to_uppercase(first).to_string(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user