about summary refs log tree commit diff
diff options
context:
space:
mode:
authoryuhaixin.hx <yuhaixin.hx@bytedance.com>2022-02-12 12:35:30 +0800
committeryuhaixin.hx <yuhaixin.hx@bytedance.com>2022-02-12 12:35:30 +0800
commitdaa3c795dcf05b76b4b54778972e1059181b1f61 (patch)
treece9463d66df47d127e8a6eb311aac9be22a25308
parentfc323035ac49b8d834fc2a0f580af8fd45e90b30 (diff)
downloadrust-daa3c795dcf05b76b4b54778972e1059181b1f61.tar.gz
rust-daa3c795dcf05b76b4b54778972e1059181b1f61.zip
add link to format_args! when being mentioned in doc
-rw-r--r--library/core/src/macros/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index a9e90556f6c..628b679236e 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -872,7 +872,7 @@ pub(crate) mod builtin {
         ($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
     }
 
-    /// Same as `format_args`, but can be used in some const contexts.
+    /// Same as [`format_args`], but can be used in some const contexts.
     ///
     /// This macro is used by the panic macros for the `const_panic` feature.
     ///
@@ -886,7 +886,7 @@ pub(crate) mod builtin {
         ($fmt:expr, $($args:tt)*) => {{ /* compiler built-in */ }};
     }
 
-    /// Same as `format_args`, but adds a newline in the end.
+    /// Same as [`format_args`], but adds a newline in the end.
     #[unstable(
         feature = "format_args_nl",
         issue = "none",