summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2021-11-02 22:43:25 +0100
committerRobert Helgesson <robert@rycee.net>2021-11-02 22:43:25 +0100
commitc7678aff1b11014160d64b82853d849ef4ce2465 (patch)
treec154720feb8b081cd14f529d479755be6cec6bb1
parentd4aacdf32463964d565194762faaaf0e81ecdb98 (diff)
downloadnixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.tar
nixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.tar.gz
nixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.tar.bz2
nixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.tar.lz
nixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.tar.xz
nixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.tar.zst
nixpkgs-c7678aff1b11014160d64b82853d849ef4ce2465.zip
lib: fix escapeXML example in documentation
The previous example output was forgotten copy-paste from some other
function.
-rw-r--r--lib/strings.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index de135d1c274..b2fd495e4c8 100644
--- a/lib/strings.nix
+++ b/lib/strings.nix
@@ -369,7 +369,7 @@ rec {
 
      Example:
        escapeXML ''"test" 'test' < & >''
-       => "\\[\\^a-z]\\*"
+       => "&quot;test&quot; &apos;test&apos; &lt; &amp; &gt;"
   */
   escapeXML = builtins.replaceStrings
     ["\"" "'" "<" ">" "&"]