Rollup merge of #137538 - tapanprakasht:fix-doc-path, r=thomcc

fix doc path in std::fmt macro

fixes https://github.com/rust-lang/rust/issues/137519
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2025-03-16 13:19:52 +08:00 committed by GitHub
commit c29a29e717
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ macro_rules! panic {
/// Use `print!` only for the primary output of your program. Use /// Use `print!` only for the primary output of your program. Use
/// [`eprint!`] instead to print error and progress messages. /// [`eprint!`] instead to print error and progress messages.
/// ///
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) /// See the formatting documentation in [`std::fmt`](crate::fmt)
/// for details of the macro argument syntax. /// for details of the macro argument syntax.
/// ///
/// [flush]: crate::io::Write::flush /// [flush]: crate::io::Write::flush
@ -106,7 +106,7 @@ macro_rules! print {
/// Use `println!` only for the primary output of your program. Use /// Use `println!` only for the primary output of your program. Use
/// [`eprintln!`] instead to print error and progress messages. /// [`eprintln!`] instead to print error and progress messages.
/// ///
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) /// See the formatting documentation in [`std::fmt`](crate::fmt)
/// for details of the macro argument syntax. /// for details of the macro argument syntax.
/// ///
/// [`std::fmt`]: crate::fmt /// [`std::fmt`]: crate::fmt
@ -156,7 +156,7 @@ macro_rules! println {
/// [`io::stderr`]: crate::io::stderr /// [`io::stderr`]: crate::io::stderr
/// [`io::stdout`]: crate::io::stdout /// [`io::stdout`]: crate::io::stdout
/// ///
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) /// See the formatting documentation in [`std::fmt`](crate::fmt)
/// for details of the macro argument syntax. /// for details of the macro argument syntax.
/// ///
/// # Panics /// # Panics
@ -190,7 +190,7 @@ macro_rules! eprint {
/// Use `eprintln!` only for error and progress messages. Use `println!` /// Use `eprintln!` only for error and progress messages. Use `println!`
/// instead for the primary output of your program. /// instead for the primary output of your program.
/// ///
/// See [the formatting documentation in `std::fmt`](../std/fmt/index.html) /// See the formatting documentation in [`std::fmt`](crate::fmt)
/// for details of the macro argument syntax. /// for details of the macro argument syntax.
/// ///
/// [`io::stderr`]: crate::io::stderr /// [`io::stderr`]: crate::io::stderr