about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-04-28 14:29:07 +0100
committerRalf Jung <post@ralfj.de>2023-08-28 11:52:21 +0200
commit2ec8b6b50fddf481f3ed11201a142f09481a81c6 (patch)
tree02a96901c045e2dab68d2dd362972d151d50b189
parent55159e80adf82f733f81cbcb7ba9fd95dbca516d (diff)
downloadrust-2ec8b6b50fddf481f3ed11201a142f09481a81c6.tar.gz
rust-2ec8b6b50fddf481f3ed11201a142f09481a81c6.zip
panic macro: Link directly to format syntax, not to format!
-rw-r--r--library/core/src/macros/panic.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/macros/panic.md b/library/core/src/macros/panic.md
index e303893b391..e883273d1c8 100644
--- a/library/core/src/macros/panic.md
+++ b/library/core/src/macros/panic.md
@@ -9,7 +9,7 @@ tests. `panic!` is closely tied with the `unwrap` method of both
 `panic!` when they are set to [`None`] or [`Err`] variants.
 
 When using `panic!()` you can specify a string payload, that is built using
-the [`format!`] syntax. That payload is used when injecting the panic into
+the [`format!` syntax]. That payload is used when injecting the panic into
 the calling Rust thread, causing the thread to panic entirely.
 
 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
 [`panic_any`]: ../std/panic/fn.panic_any.html
 [`Box`]: ../std/boxed/struct.Box.html
 [`Any`]: crate::any::Any
-[`format!`]: ../std/macro.format.html
+[`format!` syntax]: ../std/fmt/index.html
 [book]: ../book/ch09-00-error-handling.html
 [`std::result`]: ../std/result/index.html