Skip to content

Commit

Permalink
fix fail example
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jul 1, 2016
1 parent 98ef33c commit b694438
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/Language/control.pod6
Expand Up @@ -706,9 +706,10 @@ Leaves the current routine and returns the provided
L<Exception|/type/Exception> or C<Str> wrapped inside a
L<Failure|/type/Failure>.
sub f { "WELP!" };
sub f { fail "WELP!" };
dd f;
# OUTPUT«Failure.new(exception => X::AdHoc.new(payload => "wut?"), backtrace => Backtrace.new)␤»
# OUTPUT«Failure.new(exception => X::AdHoc.new(payload => "wut?"),
# backtrace => Backtrace.new)␤»
=head1 X<once|control flow>
Expand Down

0 comments on commit b694438

Please sign in to comment.