From a8cd7a2a1acb482cb75edcde672ed5f77bf167f2 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Sun, 6 Sep 2026 15:07:27 +0000 Subject: [PATCH] doc/lib: show toSentenceCase's remainder lowering --- lib/strings.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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" ``` :::