Skip to content

Commit 2ec8b6b

Browse files
ijacksonRalfJung
authored andcommitted
panic macro: Link directly to format syntax, not to format!
1 parent 55159e8 commit 2ec8b6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/macros/panic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tests. `panic!` is closely tied with the `unwrap` method of both
99
`panic!` when they are set to [`None`] or [`Err`] variants.
1010

1111
When using `panic!()` you can specify a string payload, that is built using
12-
the [`format!`] syntax. That payload is used when injecting the panic into
12+
the [`format!` syntax]. That payload is used when injecting the panic into
1313
the calling Rust thread, causing the thread to panic entirely.
1414

1515
The behavior of the default `std` hook, i.e. the code that runs directly
@@ -55,7 +55,7 @@ For more detailed information about error handling check out the [book] or the
5555
[`panic_any`]: ../std/panic/fn.panic_any.html
5656
[`Box`]: ../std/boxed/struct.Box.html
5757
[`Any`]: crate::any::Any
58-
[`format!`]: ../std/macro.format.html
58+
[`format!` syntax]: ../std/fmt/index.html
5959
[book]: ../book/ch09-00-error-handling.html
6060
[`std::result`]: ../std/result/index.html
6161

0 commit comments

Comments
 (0)