Skip to content

Commit 2c16092

Browse files
committed
fix compilation issues
1 parent b63bc2a commit 2c16092

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Language/contexts.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ In the case of I<listy> things, the numeric value will be in general equivalent
6565
6666
In a I<string context>, values can be manipulated as strings. This context is used, for instance, for printing values to standard output.
6767
68+
=for code :preamble<my $very-complicated-and-hairy-object>
6869
say $very-complicated-and-hairy-object; # OUTPUT: something meaningful
6970
7071
Or when smart-matching to a regular expression:
7172
72-
p6: say 333444777 ~~ /(3+)/; # OUTPUT: «「333」␤ 0 => 「333」␤»
73+
say 333444777 ~~ /(3+)/; # OUTPUT: «「333」␤ 0 => 「333」␤»
7374
7475
In general, the L<C<Str> routine|/routine/Str> will be called on a variable to contextualize it; since this method is inherited from L<Mu>, it is always present, but it is not always guaranteed to work. In some core classes it will issue a warning.
7576

0 commit comments

Comments
 (0)