@@ -5,12 +5,12 @@ to the caller of the program. `panic!` should be used when a program reaches
55an unrecoverable state.
66
77This macro is the perfect way to assert conditions in example code and in
8- tests. ` panic! ` is closely tied with the ` unwrap ` method of both [ ` Option ` ]
9- and [ ` Result ` ] [ runwrap ] enums. Both implementations call ` panic! ` when they are set
10- to None or Err variants.
8+ tests. ` panic! ` is closely tied with the ` unwrap ` method of both
9+ [ ` Option ` ] [ ounwrap ] and [ ` Result ` ] [ runwrap ] enums. Both implementations call
10+ ` panic! ` when they are set to [ ` None ` ] or [ ` Err ` ] variants.
1111
1212This macro is used to inject panic into a Rust thread, causing the thread to
13- panic entirely. Each thread's panic can be reaped as the ` Box< Any> ` type,
13+ panic entirely. Each thread's panic can be reaped as the [ ` Box ` ] ` < ` [ ` Any ` ] ` > ` type,
1414and the single-argument form of the ` panic! ` macro will be the value which
1515is transmitted.
1616
@@ -24,11 +24,11 @@ The multi-argument form of this macro panics with a string and has the
2424
2525See also the macro [ ` compile_error! ` ] , for raising errors during compilation.
2626
27- [ runwrap ] : ../std/result/enum.Result.html#method.unwrap
28- [ `Option` ] : ../std/option/enum.Option.html#method.unwrap
29- [ `Result` ] : ../std/result/enum.Result.html
27+ [ ounwrap ] : Option::unwrap
28+ [ runwrap ] : Result::unwrap
29+ [ `Box` ] : ../std/boxed/struct.Box.html
30+ [ `Any` ] : crate::any::Any
3031[ `format!` ] : ../std/macro.format.html
31- [ `compile_error!` ] : ../std/macro.compile_error.html
3232[ book ] : ../book/ch09-00-error-handling.html
3333
3434# Current implementation
0 commit comments