about summary refs log tree commit diff
path: root/doc/manual
diff options
context:
space:
mode:
authorAdam Szkoda <adaszko@gmail.com>2014-05-25T08·54+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-26T15·20+0200
commit8ea9fd7aa6b2152f95724e504ac61c57d90b113c (patch)
treea964e30c364dee782f3f94278c65462f592a3c45 /doc/manual
parentd8c061e044a07f7516d76df12bc6920f4f04e5ff (diff)
Rephrase @ operator description
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/writing-nix-expressions.xml7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/manual/writing-nix-expressions.xml b/doc/manual/writing-nix-expressions.xml
index 5585e89fe557..6db2adcfa0c3 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>