Rollup merge of #93930 - name1e5s:chore/docs, r=Mark-Simulacrum

add link to format_args! when mention it in docs

close #93904
This commit is contained in:
Matthias Krüger 2022-02-13 06:44:18 +01:00 committed by GitHub
commit 2b7f3ee89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",