Skip to content

Commit f68df26

Browse files
authored
tweak wording, correct format errors
1 parent 6e59f1d commit f68df26

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/Language/control.pod6

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ the enclosing block and following statements are ignored; but when the C<if>
313313
block is executed, following statements are executed. (Note there are other ways to modify
314314
the default behavior of each which are discussed in other sections.)
315315
The following examples should illustrate the default block behavior
316-
assuming no special exit statements are included in the C<if> or C<when>
317-
blocks:
316+
assuming no special exit or other side effect statements are included
317+
in the C<if> or C<when> blocks:
318318
319319
=begin code :skip-test
320320
{
@@ -328,14 +328,15 @@ blocks:
328328
}
329329
=end code
330330
331-
Should the <if> and <when> blocks above appear at file scope, following
331+
Should the C<if> and C<when> blocks above appear at file scope, following
332332
statements would be executed in each case.
333333
334334
C<when> also has a statement modifier form which does not effect execution
335335
of following statements either inside or outside of another block:
336336
337337
=begin code :skip-test
338-
say "foo" when X; # statement is executed, following statements not affected
338+
say "foo" when X; # if X is true statement is executed
339+
# following statements are not affected
339340
=end code
340341
341342

0 commit comments

Comments
 (0)