Skip to content

Commit 129ac66

Browse files
committed
Reflow and changes hierarchy... again #2885
1 parent 771051f commit 129ac66

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

doc/Language/control.pod6

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ start { sleep 1; say "done" }
153153
say "working";
154154
# working, done
155155
156-
Note that you need a space between the C<start> and the block. In the example above, the C<start> block is in sink context, since it's not assigned to a variable. From version 6.d, these kind of blocks have an exception handler attached:
156+
Note that you need a space between the C<start> and the block. In the example
157+
above, the C<start> block is in sink context, since it's not assigned to a
158+
variable. From version 6.d, these kind of blocks have an exception handler
159+
attached:
157160
158161
=for code :skip-test<Illustrates exception>
159162
start { die "We're dead"; }
@@ -332,7 +335,7 @@ present:
332335
333336
if False { } elsif 0 { } else -> $a { $a.say } ; # says "0"
334337
335-
=head2 X<C<unless>|control flow, unless>
338+
=head1 X<C<unless>|control flow, unless>
336339
337340
When you get sick of typing "if not (X)" you may use C<unless> to invert
338341
the sense of a conditional statement. You cannot use C<else> or C<elsif>
@@ -360,7 +363,7 @@ unless 0 { "0 is false".say } ; # says "0 is false"
360363
X<|control flow,with>
361364
X<|control flow,orwith>
362365
X<|control flow,without>
363-
=head2 X<C<with> C<orwith> C<without>>
366+
=head1 X<C<with> C<orwith> C<without>>
364367
365368
The C<with> statement is like C<if>, but tests for definedness rather than
366369
truth, and it topicalizes on the condition, much like C<given>:
@@ -512,9 +515,8 @@ get a value.
512515
=head1 X<for|control flow, for>
513516
514517
The C<for> loop iterates over a list, running the statements inside a
515-
L<block|/type/Block>
516-
once on each iteration. If the block takes parameters, the elements of the
517-
list are provided as arguments.
518+
L<block|/type/Block> once on each iteration. If the block takes parameters, the
519+
elements of the list are provided as arguments.
518520
519521
my @foo = 1..3;
520522
for @foo { $_.print } # prints each value contained in @foo

0 commit comments

Comments
 (0)