File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ in his C<$!> variables is an object of type C<X::AdHoc>.
184
184
185
185
So C<&die> could be written as
186
186
187
- multi sub die(Exception $e) is hidden_from_backtrace {
187
+ multi sub die(Exception $e) is hidden-from-backtrace {
188
188
$e.throw
189
189
}
190
- multi sub die($payload) is hidden_from_backtrace {
190
+ multi sub die($payload) is hidden-from-backtrace {
191
191
X::AdHoc.new(:$payload).throw;
192
192
}
193
193
@@ -1327,9 +1327,9 @@ with two leading spaces on each line.
1327
1327
The default stringification includes blocks and routines from user-space
1328
1328
code, but from the setting only routines are shown [conjectural]. Routines
1329
1329
can be hidden from the default backtrace stringification by apply the
1330
- C<hidden_from_backtrace > trait:
1330
+ C<hidden-from-backtrace > trait:
1331
1331
1332
- sub my-die(*@msg) is hidden_from_backtrace { }
1332
+ sub my-die(*@msg) is hidden-from-backtrace { }
1333
1333
1334
1334
the C<is-hidden> method in C<Backtrace::Frame> returns C<Bool::True> for routines
1335
1335
with that trait.
You can’t perform that action at this time.
0 commit comments