Skip to content

Commit 0c3e273

Browse files
Merge pull request #995 from ggoebel/master
Remove supplying explicit identity from produce examples.
2 parents 46bf352 + 8e154a1 commit 0c3e273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/List.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ producing with an infix operator:
763763
764764
# The following all do the same thing...
765765
my @numbers = (1,2,3,4,5);
766-
say produce { $^a + $^b }, 0, |@numbers;
767-
say produce * + *, 0, |@numbers;
766+
say produce { $^a + $^b }, @numbers;
767+
say produce * + *, @numbers;
768768
say produce &[+], @numbers; # operator does not need explicit identity
769769
say [\+] @numbers; # most people write it this way
770770

0 commit comments

Comments
 (0)