Skip to content

Commit

Permalink
link to the book
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric authored and ehuss committed Mar 11, 2019
1 parent 24f3bd8 commit 1985db0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ fn panic(info: &PanicInfo) -> ! {

### Standard behavior

The standard library provides an implementation of `panic_handler` than can be
statically customized using the `-C panic` flag. `-C panic=abort` makes panics
abort the process, and `-C panic=unwind` makes panics unwind the panicking
thread. If no panicking behavior is specified using `-C panic` one of these two
behaviors is chosen according to the compilation target.
The standard library provides an implementation of `panic_handler` than defaults
to unwinding the stack but that can be [changed to abort the process][abort].

[abort]: ../book/2018-edition/ch09-01-unrecoverable-errors-with-panic.html

0 comments on commit 1985db0

Please sign in to comment.