about summary refs log tree commit diff
path: root/doc/functions
diff options
context:
space:
mode:
authorAlex Brandt <alunduil@gmail.com>2020-11-30 21:19:50 +0000
committerAlex Brandt <alunduil@gmail.com>2020-11-30 21:19:50 +0000
commit11b6ded912c48bc15beab5abac337bef0073df0f (patch)
treebc3a6ea883edae1700832da10cd9cefea09a30c5 /doc/functions
parentf2ea4d951fcbf301d6bed91a0bcf4ca03026b790 (diff)
downloadnixlib-11b6ded912c48bc15beab5abac337bef0073df0f.tar
nixlib-11b6ded912c48bc15beab5abac337bef0073df0f.tar.gz
nixlib-11b6ded912c48bc15beab5abac337bef0073df0f.tar.bz2
nixlib-11b6ded912c48bc15beab5abac337bef0073df0f.tar.lz
nixlib-11b6ded912c48bc15beab5abac337bef0073df0f.tar.xz
nixlib-11b6ded912c48bc15beab5abac337bef0073df0f.tar.zst
nixlib-11b6ded912c48bc15beab5abac337bef0073df0f.zip
nixos/nixpkgs/doc: add missing operator to attrsets.mapAttrs example.
It looks like this operator was missing (just a dropped +) unless I'm
missing something unexpected about the Nix syntax I've forgotten.
Diffstat (limited to 'doc/functions')
-rw-r--r--doc/functions/library/attrsets.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/functions/library/attrsets.xml b/doc/functions/library/attrsets.xml
index 3c5823c25891..f3ceeac0e888 100644
--- a/doc/functions/library/attrsets.xml
+++ b/doc/functions/library/attrsets.xml
@@ -772,7 +772,7 @@ nameValuePair "some" 6
    <title>Modifying each value of an attribute set</title>
 <programlisting><![CDATA[
 lib.attrsets.mapAttrs
-  (name: value: name + "-" value)
+  (name: value: name + "-" + value)
   { x = "foo"; y = "bar"; }
 => { x = "x-foo"; y = "y-bar"; }
 ]]></programlisting>