Skip to content

Commit e336c41

Browse files
committed
Fixes output as indicated in #2469
However, I'm not so sure now the text (which mentions *arguments*) corresponds to what's there. So I leave this open just in case there's more fixing to make.
1 parent 8be0d24 commit e336c41

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/Language/objects.pod6

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,16 @@ my @words = "Abe", "Lincoln";
5050
say @words;
5151
# OUTPUT: «[Abe Lincoln said (Fourscore and seven years ago)]␤»
5252
53-
Multiple arguments can be specified by separating the argument list with a colon:
53+
Multiple arguments can be specified by separating the argument list with
54+
a colon:
5455
5556
=for code :preamble<my @words;>
5657
say @words.join: '--';
57-
# OUTPUT: «Abe--Lincoln--said--Fourscore--and--seven--years--ago␤»
58+
# OUTPUT: «Abe--Lincoln--said--Fourscore and seven years ago␤»
5859
59-
Since you have to put a C<:> after the method if you want to pass arguments
60-
without parentheses, a method call without a colon or parentheses is
61-
unambiguously a method call without an argument list:
60+
Since you have to put a C<:> after the method if you want to pass
61+
arguments without parentheses, a method call without a colon or
62+
parentheses is unambiguously a method call without an argument list:
6263
6364
say 4.log: ; # OUTPUT: «1.38629436111989␤» ( natural logarithm of 4 )
6465
say 4.log: +2; # OUTPUT: «2␤» ( base-2 logarithm of 4 )

0 commit comments

Comments
 (0)