mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
doc/lib: show toSentenceCase's remainder lowering
This commit is contained in:
@@ -1563,7 +1563,8 @@ rec {
|
||||
toUpper = replaceStrings lowerChars upperChars;
|
||||
|
||||
/**
|
||||
Converts the first character of a string `s` to upper-case.
|
||||
Converts the first character of a string `s` to upper-case and leaves the
|
||||
remainder lower-case.
|
||||
|
||||
# Inputs
|
||||
|
||||
@@ -1581,8 +1582,8 @@ rec {
|
||||
## `lib.strings.toSentenceCase` usage example
|
||||
|
||||
```nix
|
||||
toSentenceCase "home"
|
||||
=> "Home"
|
||||
toSentenceCase "welcome Home"
|
||||
=> "Welcome home"
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user