Skip to content

Commit

Permalink
link to the book
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Sep 7, 2018
1 parent 06117e4 commit ade532c
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 ade532c

Please sign in to comment.