@@ -5,12 +5,12 @@ to the caller of the program. `panic!` should be used when a program reaches
5
5
an unrecoverable state.
6
6
7
7
This 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.
11
11
12
12
This 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,
14
14
and the single-argument form of the ` panic! ` macro will be the value which
15
15
is transmitted.
16
16
@@ -24,11 +24,11 @@ The multi-argument form of this macro panics with a string and has the
24
24
25
25
See also the macro [ ` compile_error! ` ] , for raising errors during compilation.
26
26
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
30
31
[ `format!` ] : ../std/macro.format.html
31
- [ `compile_error!` ] : ../std/macro.compile_error.html
32
32
[ book ] : ../book/ch09-00-error-handling.html
33
33
34
34
# Current implementation
0 commit comments