Skip to content

Commit 2ebb405

Browse files
author
Jan-Olof Hendig
committed
Fixed a few errors. Zoffix++, moritz++
1 parent f98e28f commit 2ebb405

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/functions.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ one sublist, or many:
350350
grab(flat (1, 2), (3, 4)); # OUTPUT: «grab 1␤grab 2␤grab 3␤grab 4␤»
351351
grab(flat $(1, 2), $(3, 4)); # OUTPUT: «grab 1 2␤grab 3 4␤»
352352
grab(flat (1, 2)); # OUTPUT: «grab 1␤grab 2␤»
353-
grab(flat $(1, 2)); # OUTPUT: «grab 1 2␤»
353+
grab(flat $(1, 2)); # OUTPUT: «grab 1␤grab 2␤»
354354
355355
It is worth noting that mixing binding and sigilless variables
356356
in these cases requires a bit of finesse, because there is no Scalar
@@ -529,7 +529,7 @@ sub circumfix:<START END>(*@elems) {
529529
"start", @elems, "end"
530530
}
531531
532-
say START 'a', 'b', 'c' END; # OUTPUT: «start a b c end␤»
532+
say START 'a', 'b', 'c' END; # OUTPUT: «(start [a b c] end)␤»
533533
=end code
534534
535535
Postcircumfixes also receive the term after which they are parsed as
@@ -841,8 +841,8 @@ sub print-bar(Bar() $bar) {
841841
print-bar Foo.new;
842842
=end code
843843
844-
Coercion types are supposed to work wherever types work, but Rakudo
845-
currently (2015.02) only implements them for subroutine parameters.
844+
Coercion types are supposed to work wherever types work, but Rakudo currently
845+
(2017.05) only implements them in signatures, for both parameters and return types.
846846
847847
=head1 C<sub MAIN>
848848
X<|MAIN>X«|command line arguments»

0 commit comments

Comments
 (0)