diff --git a/doc/Type/Failure.pod6 b/doc/Type/Failure.pod6 index dd703bf81..4e6601f8a 100644 --- a/doc/Type/Failure.pod6 +++ b/doc/Type/Failure.pod6 @@ -34,6 +34,14 @@ Returns C for handled failures, C otherwise. sub f() { fail }; my $v = f; say $v.handled; # OUTPUT: «False␤» +The C method is an lvalue, which means you can also use it to set the +handled state: + + sub f() { fail } + my $v = f; + $v.handled = True; + say $v.handled; # OUTPUT: «True␤» + =head2 method exception Defined as: