civodul pushed a commit to branch nix
in repository guix.
commit 8ea9fd7aa6b2152f95724e504ac61c57d90b113c
Author: Adam Szkoda <[email protected]>
Date: Sun May 25 10:54:54 2014 +0200
Rephrase @ operator description
---
doc/manual/writing-nix-expressions.xml | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/doc/manual/writing-nix-expressions.xml
b/doc/manual/writing-nix-expressions.xml
index 5585e89..6db2adc 100644
--- a/doc/manual/writing-nix-expressions.xml
+++ b/doc/manual/writing-nix-expressions.xml
@@ -1060,15 +1060,14 @@ map (concat "foo") [ "bar" "bla" "abc"
]</programlisting>
and <varname>z</varname>.</para></listitem>
- <listitem><para>An <literal>@</literal>-pattern requires that the
- argument matches with the patterns on the left- and right-hand side
- of the <literal>@</literal>-sign. For example:
+ <listitem><para>An <literal>@</literal>-pattern provides a means of referring
+ to the whole value being matched:
<programlisting>
args@{ x, y, z, ... }: z + y + x + args.a</programlisting>
Here <varname>args</varname> is bound to the entire argument, which
- is further matches against the pattern <literal>{ x, y, z,
+ is further matched against the pattern <literal>{ x, y, z,
... }</literal>.</para></listitem>