diff --git a/doc/Language/exceptions.rakudoc b/doc/Language/exceptions.rakudoc index 57ceda3b0..a059d5d19 100644 --- a/doc/Language/exceptions.rakudoc +++ b/doc/Language/exceptions.rakudoc @@ -144,7 +144,7 @@ the code> in the enclosing block will never be executed. Compare with this: - CATCH { + { CATCH { default { .Str.say; } @@ -246,7 +246,7 @@ Which would output: in block at exception.raku line 21 =end code -Since the C block is handling just the L|/type/X::AdHoc> exception +This is because the C block is handling just the L|/type/X::AdHoc> exception thrown by the C statement, but not the C exception. In the absence of a C block, all exceptions will be contained and dropped, as indicated above. C will resume execution right after @@ -255,8 +255,8 @@ Please consult the section on L for more information on this. -A C-block is a normal block and as such treats its last statement -as the return value of itself. We can therefore use it as a right-hand +A C block is a normal block and as such, uses its last statement +as its return value. We can therefore use it as a right-hand side. =begin code @@ -388,10 +388,9 @@ sub bad-sub { say "Returned $return"; CATCH { default { - say "Error ", .^name, ': ',.Str; + say "Error ", .^name, ': ', .Str; $return = '0'; .resume; - } } }