diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-11-01 11:53:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-01 11:53:33 +0100 |
| commit | 25eac92987b628dfae8c7b59b97245a2869f6d63 (patch) | |
| tree | 7ccb0f823d8043c333d385d0a1c2c0b9ec362ae5 | |
| parent | 835310e3cce57711ea7c5f0567df46d8a4cfb579 (diff) | |
| parent | 3baf6a4a749bd6ac4a8b9f1054d3f2ad2fc91e45 (diff) | |
Rollup merge of #78596 - pavlukivan:master, r=m-ou-se
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`)
| -rw-r--r-- | library/alloc/src/macros.rs | 4 | ||||
| -rw-r--r-- | library/core/src/macros/mod.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/macros.rs b/library/alloc/src/macros.rs index 2f744618d69..a992d768d63 100644 --- a/library/alloc/src/macros.rs +++ b/library/alloc/src/macros.rs @@ -71,7 +71,7 @@ macro_rules! vec { /// /// Additional parameters passed to `format!` replace the `{}`s within the /// formatting string in the order given unless named or positional parameters -/// are used; see [`std::fmt`][fmt] for more information. +/// are used; see [`std::fmt`] for more information. /// /// A common use for `format!` is concatenation and interpolation of strings. /// The same convention is used with [`print!`] and [`write!`] macros, @@ -80,7 +80,7 @@ macro_rules! vec { /// To convert a single value to a string, use the [`to_string`] method. This /// will use the [`Display`] formatting trait. /// -/// [fmt]: core::fmt +/// [`std::fmt`]: ../std/fmt/index.html /// [`print!`]: ../std/macro.print.html /// [`write!`]: core::write /// [`to_string`]: crate::string::ToString diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index bce8a70e92f..079d9f6006a 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -327,7 +327,7 @@ macro_rules! r#try { /// /// See [`std::fmt`] for more information on the format string syntax. /// -/// [`std::fmt`]: crate::fmt +/// [`std::fmt`]: ../std/fmt/index.html /// [`fmt::Write`]: crate::fmt::Write /// [`io::Write`]: ../std/io/trait.Write.html /// [`fmt::Result`]: crate::fmt::Result |
