From 11b6ded912c48bc15beab5abac337bef0073df0f Mon Sep 17 00:00:00 2001 From: Alex Brandt <alunduil@gmail.com> Date: Mon, 30 Nov 2020 21:19:50 +0000 Subject: [PATCH] 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. --- doc/functions/library/attrsets.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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>