fn capitalize(s: &str) -> String {
    let mut c = s.chars();
    match c.next() {
        None => String::new(),
        Some(f) => f.to_uppercase().to_string() + c.as_str(),
    }
}
/// This probably breaks for some languages/alphabets, but for generating random
/// languages, ought to be fine. By Definition, really.
This probably breaks for some languages/alphabets, but for generating random
languages, ought to be fine. By Definition, really.
This probably breaks for some languages / alphabets but for generating random languages ought to be fine . By Definition really .
fn capitalize(s: &str) -> String {
    let mut c = s.chars();
    match c.next() {
        None => String::new(),
        Some(f) => f.to_uppercase().to_string() + c.as_str(),
    }
}
fn capitalize ( s : & str ) -> String { let mut c = s . chars ( ) ; match c . next ( ) { None => String :: new ( ) , Some ( f ) => f . to_uppercase ( ) . to_string ( ) + c . as_str ( ) , } }
This probably breaks for some languages/alphabets, but for generating random
languages, ought to be fine.
This probably breaks for some languages / alphabets but for generating random languages ought to be fine .
s
&str