Crates.io | ucfirst |
lib.rs | ucfirst |
version | |
source | src |
created_at | 2023-05-11 16:39:07.380923 |
updated_at | 2024-12-05 13:55:34.84016 |
description | Uppercase the first letter of a string |
homepage | |
repository | https://github.com/qtfkwk/ucfirst |
max_upload_size | |
id | 862265 |
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` |
size | 0 |
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.