pub fn capitalize(str: &str) -> StringExpand description
Capitalizes the first character of a string.
This function takes a string slice as input and returns a new String with the first character
capitalized.
ยงExamples
use zed_util::capitalize;
assert_eq!(capitalize("hello"), "Hello");
assert_eq!(capitalize("WORLD"), "WORLD");
assert_eq!(capitalize(""), "");