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:
parent
f2ea4d951f
commit
11b6ded912
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue