Skip to main content

ucfirst

Function ucfirst 

Source
pub fn ucfirst(s: &str) -> String
Expand description

First character uppercase (Unicode-aware).

use oxios_markdown::parser::ucfirst;
assert_eq!(ucfirst("hello"), "Hello");
assert_eq!(ucfirst(""), "");
assert_eq!(ucfirst("über"), "Über");