File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ In the standard library panicking has a defined behavior: it unwinds the stack
88of the panicking thread, unless the user opted for aborting the program on
99panics.
1010
11- In non- standard programs , however, the panicking behavior is left undefined. A
12- behavior can be chosen by declaring a ` #[panic_handler] ` function. This function
13- must appear exactly * once* in the dependency graph of a program, and must have
14- the following signature: ` fn(&PanicInfo) -> ! ` , where [ ` PanicInfo ` ] is a struct
15- containing information about the location of the panic.
11+ In programs without standard library , however, the panicking behavior is left
12+ undefined. A behavior can be chosen by declaring a ` #[panic_handler] ` function.
13+ This function must appear exactly * once* in the dependency graph of a program,
14+ and must have the following signature: ` fn(&PanicInfo) -> ! ` , where [ ` PanicInfo ` ]
15+ is a struct containing information about the location of the panic.
1616
1717[ `PanicInfo` ] : https://doc.rust-lang.org/core/panic/struct.PanicInfo.html
1818
You can’t perform that action at this time.
0 commit comments