From 8ea9fd7aa6b2152f95724e504ac61c57d90b113c Mon Sep 17 00:00:00 2001 From: Adam Szkoda Date: Sun, 25 May 2014 10:54:54 +0200 Subject: [PATCH] Rephrase @ operator description --- doc/manual/writing-nix-expressions.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/manual/writing-nix-expressions.xml b/doc/manual/writing-nix-expressions.xml index 5585e89fe5..6db2adcfa0 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" ] and z. - An @-pattern requires that the - argument matches with the patterns on the left- and right-hand side - of the @-sign. For example: + An @-pattern provides a means of referring + to the whole value being matched: args@{ x, y, z, ... }: z + y + x + args.a Here args is bound to the entire argument, which - is further matches against the pattern { x, y, z, + is further matched against the pattern { x, y, z, ... }.