Skip to content

Commit 9f2ab21

Browse files
authored
Update panicking.md
non-standard program sounds like it wouldn't be a normal program
1 parent ccfe42d commit 9f2ab21

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/start/panicking.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ In the standard library panicking has a defined behavior: it unwinds the stack
88
of the panicking thread, unless the user opted for aborting the program on
99
panics.
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

0 commit comments

Comments
 (0)