Skip to content

Commit

Permalink
add link to format_args! when being mentioned in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaixin.hx committed Feb 12, 2022
1 parent fc32303 commit daa3c79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand All @@ -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",
Expand Down

0 comments on commit daa3c79

Please sign in to comment.