Skip to content

Commit f4004e4

Browse files
authored
Fix typo: comsuming -> consuming
1 parent d19c977 commit f4004e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Seq.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ iterated during the assignment:
1515
1616
=begin code
1717
# The Seq created by gather ... take is consumed on the spot here.
18-
my @a = gather do { say 'consuming...'; take 'one' }; # OUTPUT: «comsuming...␤»
18+
my @a = gather do { say 'consuming...'; take 'one' }; # OUTPUT: «consuming...␤»
1919
2020
# The Seq here is only consumed as we iterate over @a later.
2121
my @a = lazy gather do { say 'consuming...'; take 'one' }; # outputs nothing.
22-
.say for @a; # OUTPUT: «comsuming...␤one␤»
22+
.say for @a; # OUTPUT: «consuming...␤one␤»
2323
=end code
2424
2525
A typical use case is L<method C<lines> in C<IO::Handle>|/type/IO::Handle#method_lines>,

0 commit comments

Comments
 (0)