about summary refs log tree commit diff
path: root/lib/strings.nix
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 /lib/strings.nix
parentd4aacdf32463964d565194762faaaf0e81ecdb98 (diff)
lib: fix escapeXML example in documentation
The previous example output was forgotten copy-paste from some other
function.
Diffstat (limited to 'lib/strings.nix')
-rw-r--r--lib/strings.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix
index de135d1c2746e..b2fd495e4c841 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
     ["\"" "'" "<" ">" "&"]