ucfirst 0.3.0

Uppercase the first letter of a string
Documentation
  • Coverage
  • 33.33%
    2 out of 6 items documented2 out of 6 items with examples
  • Size
  • Source code size: 5.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 517.99 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • qtfkwk/ucfirst
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • qtfkwk

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.