Skip to content

Commit

Permalink
Simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 17, 2017
1 parent cf0154f commit 97292f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/Type/Failure.pod6
Expand Up @@ -42,8 +42,10 @@ Defined as:
Returns the L<Exception> object that the failure wraps.
sub f() { fail }; my $v = f; $v.exception.throw;
CATCH { default { put .^name, ': ', .Str } };
sub failer() { fail };
my $failure = failer;
my $ex = $failure.exception;
put $ex.^name, ': ', $ex.Str;
# OUTPUT: «X::AdHoc: Failed␤»
=head2 method Bool
Expand Down

0 comments on commit 97292f8

Please sign in to comment.