File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ When using `panic!()` you can specify a string payload, that is built using
13
13
the [ ` format! ` ] syntax. That payload is used when injecting the panic into
14
14
the calling Rust thread, causing the thread to panic entirely.
15
15
16
- The behavior of the default ` std ` hook, i.e. the code, that runs directy
17
- after the panic is invoked, is to print the message payload to the
16
+ The behavior of the default ` std ` hook, i.e. the code that runs directly
17
+ after the panic is invoked, is to print the message payload to
18
18
` stderr ` along with the file/line/column information of the ` panic!() `
19
19
call. You can override the panic hook using [ ` std::panic::set_hook() ` ] .
20
- Inside the hook a panic can be accessed as a ` &dyn Any + Send ` , which
20
+ Inside the hook a panic can be accessed as a ` &dyn Any + Send ` ,
21
21
which contains either a ` &str ` or ` String ` for regular ` panic!() ` invocations.
22
22
To panic with a value of another other type, [ ` panic_any ` ] can be used.
23
23
You can’t perform that action at this time.
0 commit comments