doc/lib: show toSentenceCase's remainder lowering

This commit is contained in:
daimond113
2026-09-06 15:07:27 +00:00
parent 5992424744
commit a8cd7a2a1a

View File

@@ -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"
```
:::