3 unstable releases
0.2.1 | Jan 7, 2024 |
---|---|
0.2.0 | Jan 7, 2024 |
0.1.0 | May 11, 2023 |
#830 in Text processing
117 downloads per month
Used in 2 crates
3KB
This is the long-awaited Rust crate that solves the problem of uppercasing the first letter of a string in Rust.
Full disclosure: this solution was shamelessly lifted from the leading response over on StackOverflow by Shepmaster.
use ucfirst::ucfirst;
assert_eq!(ucfirst("apple"), "Apple");
See also the ccase
CLI utility and convert_case
library crates.