capitalize

Function capitalize 

Source
pub fn capitalize(string: &str) -> String
Expand description

Return a version of the string with the first letter capitalized.

§Arguments

  • string - The string to get a capitalized version of.

§Examples

let result = case_switcher::capitalize("sample_string");
assert_eq!(result, "Sample_string");