Module design_pattern_examples_rust::helpers::titlecase
source · Expand description
Implementation of the titlecase() function, which converts a string to a lowercase string with an uppercase first character, suitable as the first word in a sentence.
Functions
- Convert the first word (or only word) in the given string to lowercase then make the first letter uppercase. It does not touch any of the other words after the first.