Skip to content

Commit df9d115

Browse files
authored
Formatting fix: Markdown -> POD
1 parent a0efe96 commit df9d115

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/Language/operators.pod6

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ The lower-case version (X<s///>) substitutes in-place, while the
137137
upper-case version (X<S///>) leaves the original alone and returns
138138
the resultant string.
139139
140-
Both operators work on `$_` variable. Since smartmatch operator aliases
141-
the left hand side to `$_`, you can use lowercase `s///` with it, but
142-
it's a mistake to use it with uppercase `S///`, because you can't
140+
Both operators work on C<$_> variable. Since smartmatch operator aliases
141+
the left hand side to C<$_>, you can use lowercase C<s///> with it, but
142+
it's a mistake to use it with uppercase C<S///>, because you can't
143143
retrieve the modified string. The correct way is to alias the given
144-
string by some other method, such as a `for` loop or, as is shown in the
145-
example above, with a `given` block (in this case, it's a postfix form
144+
string by some other method, such as a C<for> loop or, as is shown in the
145+
example above, with a C<given> block (in this case, it's a postfix form
146146
of it, without curly braces).
147147
148148
Both operators can take the same adverbs as the
149-
L<.subst method|/routine/subst>, which go between the `s`/`S` and the opening
150-
`/`. Whitespace can be used liberally:
149+
L<.subst method|/routine/subst>, which go between the C<s>/C<S> and the opening
150+
C</>. Whitespace can be used liberally:
151151
152152
my $str = 'match string';
153153
$str ~~ s:g/match/replacement/;

0 commit comments

Comments
 (0)