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.
This commit is contained in:
Alex Brandt 2020-11-30 21:19:50 +00:00
parent f2ea4d951f
commit 11b6ded912

View file

@ -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>