ucfirst

Crates.ioucfirst
lib.rsucfirst
version
sourcesrc
created_at2023-05-11 16:39:07.380923
updated_at2024-12-05 13:55:34.84016
descriptionUppercase the first letter of a string
homepage
repositoryhttps://github.com/qtfkwk/ucfirst
max_upload_size
id862265
Cargo.toml error:TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(qtfkwk)

documentation

README

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.

Commit count: 5

cargo fmt