Merge pull request #105494 from alunduil/missing-operator-mapAttr-doc
This commit is contained in:
commit
d74960e8db
|
@ -772,7 +772,7 @@ nameValuePair "some" 6
|
||||||
<title>Modifying each value of an attribute set</title>
|
<title>Modifying each value of an attribute set</title>
|
||||||
<programlisting><![CDATA[
|
<programlisting><![CDATA[
|
||||||
lib.attrsets.mapAttrs
|
lib.attrsets.mapAttrs
|
||||||
(name: value: name + "-" value)
|
(name: value: name + "-" + value)
|
||||||
{ x = "foo"; y = "bar"; }
|
{ x = "foo"; y = "bar"; }
|
||||||
=> { x = "x-foo"; y = "y-bar"; }
|
=> { x = "x-foo"; y = "y-bar"; }
|
||||||
]]></programlisting>
|
]]></programlisting>
|
||||||
|
|
Loading…
Reference in a new issue