Skip to content

Commit 710a58e

Browse files
committed
Uniformizes output
1 parent 942ccfa commit 710a58e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

doc/Language/101-basics.pod6

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ not interpolate:
351351
352352
=begin code
353353
my $names = 'things';
354-
say 'Do not call me $names'; # Do not call me $names
355-
say "Do not call me $names"; # Do not call me things
354+
say 'Do not call me $names'; # OUTPUT: «Do not call me $names␤»
355+
say "Do not call me $names"; # OUTPUT: «Do not call me things␤»
356356
=end code
357357
358358
Double quoted strings in Perl 6 can interpolate variables with the C<$>
@@ -375,11 +375,11 @@ When you put words in between the < and > they are all assumed to be strings,
375375
so you do not need to wrap them each in double quotes C<< "..." >>.
376376
377377
=begin code :preamble<my %sets>
378-
say "Math: { 1 + 2 }"; # Math: 3
378+
say "Math: { 1 + 2 }"; # OUTPUT: «Math: 3␤»
379379
my @people = <Luke Matthew Mark>;
380-
say "The synoptics are: {@people}"; # The synoptics are: Luke Matthew Mark
380+
say "The synoptics are: {@people}"; # OUTPUT: «The synoptics are: Luke Matthew Mark␤»
381381
382-
say "{%sets}"; # From the table tennis tournament
382+
say "{%sets}␤"; # From the table tennis tournament
383383
384384
# Charlie 4
385385
# Dave 6
@@ -399,17 +399,17 @@ the postcircumfix.
399399
=begin code
400400
my @flavours = <vanilla peach>;
401401
402-
say "we have @flavours"; # we have @flavours
403-
say "we have @flavours[0]"; # we have vanilla
402+
say "we have @flavours"; # OUTPUT: «we have @flavours␤»
403+
say "we have @flavours[0]"; # OUTPUT: «we have vanilla␤»
404404
# so-called "Zen slice"
405-
say "we have @flavours[]"; # we have vanilla peach
405+
say "we have @flavours[]"; # OUTPUT: «we have vanilla peach␤»
406406
407407
# method calls ending in postcircumfix
408-
say "we have @flavours.sort()"; # we have peach vanilla
408+
say "we have @flavours.sort()"; # OUTPUT: «we have peach vanilla␤»
409409
410410
# chained method calls:
411411
say "we have @flavours.sort.join(', ')";
412-
# we have peach, vanilla
412+
# OUTPUT: «we have peach, vanilla␤»
413413
=end code
414414
415415

0 commit comments

Comments
 (0)