diff --git a/lib/strings.nix b/lib/strings.nix index 411e1729d7a7..0ca438711a47 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -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" ``` :::