diff options
author | Alex Brandt <alunduil@gmail.com> | 2020-11-30 21:19:50 +0000 |
---|---|---|
committer | Alex Brandt <alunduil@gmail.com> | 2020-11-30 21:19:50 +0000 |
commit | 11b6ded912c48bc15beab5abac337bef0073df0f (patch) | |
tree | bc3a6ea883edae1700832da10cd9cefea09a30c5 | |
parent | f2ea4d951fcbf301d6bed91a0bcf4ca03026b790 (diff) | |
download | nixpkgs-11b6ded912c48bc15beab5abac337bef0073df0f.tar nixpkgs-11b6ded912c48bc15beab5abac337bef0073df0f.tar.gz nixpkgs-11b6ded912c48bc15beab5abac337bef0073df0f.tar.bz2 nixpkgs-11b6ded912c48bc15beab5abac337bef0073df0f.tar.lz nixpkgs-11b6ded912c48bc15beab5abac337bef0073df0f.tar.xz nixpkgs-11b6ded912c48bc15beab5abac337bef0073df0f.tar.zst nixpkgs-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.
-rw-r--r-- | doc/functions/library/attrsets.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/functions/library/attrsets.xml b/doc/functions/library/attrsets.xml index 3c5823c2589..f3ceeac0e88 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> |