From 24506722d3dea88200a7c72733de103d1340e2ca Mon Sep 17 00:00:00 2001 From: Eric Forste Date: Mon, 10 Nov 2025 11:18:42 -0600 Subject: [PATCH] eliminate superstitious parentheses in operators.rakudoc eliminate superstitious parentheses in code example in the doco of the feed operator --- doc/Language/operators.rakudoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Language/operators.rakudoc b/doc/Language/operators.rakudoc index c68c89661..f968e8a29 100644 --- a/doc/Language/operators.rakudoc +++ b/doc/Language/operators.rakudoc @@ -3554,17 +3554,17 @@ operands are false, returns the last one. This X operator takes the result from the left and passes it to the next (right) routine as the last parameter. - my @array = (1, 2, 3, 4, 5); + my @array = 1, 2, 3, 4, 5; @array ==> sum() ==> say(); # OUTPUT: «15␤» This simple example, above, is the equivalent of writing: - my @array = (1, 2, 3, 4, 5); + my @array = 1, 2, 3, 4, 5; say(sum(@array)); # OUTPUT: «15␤» Or if using methods: - my @array = (1, 2, 3, 4, 5); + my @array = 1, 2, 3, 4, 5; @array.sum.say; # OUTPUT: «15␤» The precedence is very loose so you will need to use parentheses to