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, ... }.