Skip to content

Commit 9fc68ca

Browse files
committed
fix let example and clean up first sentence
1 parent 89362d6 commit 9fc68ca

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

doc/Language/operators.pod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,15 +703,14 @@ except that C<temp> does not reset the value).
703703
704704
sub prefix:<let>(Mu $a is rw)
705705
706-
Like the L<C<temp>|#prefix_tmp> prefix, but only restores the
707-
value if the block exits unsuccessfully. A successful exit means the
708-
block returned a defined value or a list.
706+
Restores the previous value if the block exits unsuccessfully. A
707+
successful exit means the block returned a defined value or a list.
709708
710709
my $answer = 42;
711710
712711
{
713712
let $answer = 84;
714-
die if Bool.pick;
713+
die if not Bool.pick;
715714
CATCH {
716715
default { say "it's been reset :(" }
717716
}

doc/Language/variables.pod

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,15 +647,14 @@ say $cookies; # -> 6
647647
648648
=head2 The C<let> Prefix
649649
650-
Like the L<C<temp>|#The_temp_Prefix> prefix, but only restores the
651-
value if the block exits unsuccessfully. A successful exit means the
652-
block returned a defined value or a list.
650+
Restores the previous value if the block exits unsuccessfully. A
651+
successful exit means the block returned a defined value or a list.
653652
654653
my $answer = 42;
655654
656655
{
657656
let $answer = 84;
658-
die if Bool.pick;
657+
die if not Bool.pick;
659658
CATCH {
660659
default { say "it's been reset :(" }
661660
}

0 commit comments

Comments
 (0)