Skip to content

Commit 3baf6a4

Browse files
committed
Fix doc links to std::fmt
std::format and core::write macros' docs linked to core::fmt for format string reference, even though only std::fmt has format string documentation and the link titles were std::fmt.
1 parent 388ef34 commit 3baf6a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/alloc/src/macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ macro_rules! vec {
7171
///
7272
/// Additional parameters passed to `format!` replace the `{}`s within the
7373
/// formatting string in the order given unless named or positional parameters
74-
/// are used; see [`std::fmt`][fmt] for more information.
74+
/// are used; see [`std::fmt`] for more information.
7575
///
7676
/// A common use for `format!` is concatenation and interpolation of strings.
7777
/// The same convention is used with [`print!`] and [`write!`] macros,
@@ -80,7 +80,7 @@ macro_rules! vec {
8080
/// To convert a single value to a string, use the [`to_string`] method. This
8181
/// will use the [`Display`] formatting trait.
8282
///
83-
/// [fmt]: core::fmt
83+
/// [`std::fmt`]: ../std/fmt/index.html
8484
/// [`print!`]: ../std/macro.print.html
8585
/// [`write!`]: core::write
8686
/// [`to_string`]: crate::string::ToString

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ macro_rules! r#try {
327327
///
328328
/// See [`std::fmt`] for more information on the format string syntax.
329329
///
330-
/// [`std::fmt`]: crate::fmt
330+
/// [`std::fmt`]: ../std/fmt/index.html
331331
/// [`fmt::Write`]: crate::fmt::Write
332332
/// [`io::Write`]: ../std/io/trait.Write.html
333333
/// [`fmt::Result`]: crate::fmt::Result

0 commit comments

Comments
 (0)