Skip to content

Commit 11b888d

Browse files
committed
Speculate about kebab-casing hidden_from_backtrace
1 parent bcacc15 commit 11b888d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

S32-setting-library/Exception.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ in his C<$!> variables is an object of type C<X::AdHoc>.
184184

185185
So C<&die> could be written as
186186

187-
multi sub die(Exception $e) is hidden_from_backtrace {
187+
multi sub die(Exception $e) is hidden-from-backtrace {
188188
$e.throw
189189
}
190-
multi sub die($payload) is hidden_from_backtrace {
190+
multi sub die($payload) is hidden-from-backtrace {
191191
X::AdHoc.new(:$payload).throw;
192192
}
193193

@@ -1327,9 +1327,9 @@ with two leading spaces on each line.
13271327
The default stringification includes blocks and routines from user-space
13281328
code, but from the setting only routines are shown [conjectural]. Routines
13291329
can be hidden from the default backtrace stringification by apply the
1330-
C<hidden_from_backtrace> trait:
1330+
C<hidden-from-backtrace> trait:
13311331

1332-
sub my-die(*@msg) is hidden_from_backtrace { }
1332+
sub my-die(*@msg) is hidden-from-backtrace { }
13331333

13341334
the C<is-hidden> method in C<Backtrace::Frame> returns C<Bool::True> for routines
13351335
with that trait.

0 commit comments

Comments
 (0)