Skip to content

Commit

Permalink
Fixed a few errors. Zoffix++, moritz++
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan-Olof Hendig committed Jun 2, 2017
1 parent f98e28f commit 2ebb405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/Language/functions.pod6
Expand Up @@ -350,7 +350,7 @@ one sublist, or many:
grab(flat (1, 2), (3, 4)); # OUTPUT: «grab 1␤grab 2␤grab 3␤grab 4␤»
grab(flat $(1, 2), $(3, 4)); # OUTPUT: «grab 1 2␤grab 3 4␤»
grab(flat (1, 2)); # OUTPUT: «grab 1␤grab 2␤»
grab(flat $(1, 2)); # OUTPUT: «grab 1 2␤»
grab(flat $(1, 2)); # OUTPUT: «grab 1␤grab 2␤»
It is worth noting that mixing binding and sigilless variables
in these cases requires a bit of finesse, because there is no Scalar
Expand Down Expand Up @@ -529,7 +529,7 @@ sub circumfix:<START END>(*@elems) {
"start", @elems, "end"
}
say START 'a', 'b', 'c' END; # OUTPUT: «start a b c end␤»
say START 'a', 'b', 'c' END; # OUTPUT: «(start [a b c] end)␤»
=end code
Postcircumfixes also receive the term after which they are parsed as
Expand Down Expand Up @@ -841,8 +841,8 @@ sub print-bar(Bar() $bar) {
print-bar Foo.new;
=end code
Coercion types are supposed to work wherever types work, but Rakudo
currently (2015.02) only implements them for subroutine parameters.
Coercion types are supposed to work wherever types work, but Rakudo currently
(2017.05) only implements them in signatures, for both parameters and return types.
=head1 C<sub MAIN>
X<|MAIN>X«|command line arguments»
Expand Down

0 comments on commit 2ebb405

Please sign in to comment.