diff options
| author | Ivan Pavluk <ivanpavluk00@gmail.com> | 2020-10-31 17:50:08 +0700 |
|---|---|---|
| committer | Ivan Pavluk <ivanpavluk00@gmail.com> | 2020-10-31 18:02:55 +0700 |
| commit | 3baf6a4a749bd6ac4a8b9f1054d3f2ad2fc91e45 (patch) | |
| tree | 9ce3e28f84b8b15382c9f4c3807cccdd0b4c0e65 /library/alloc | |
| parent | 388ef349043f20a1a8a3011eaf49dee220485e0a (diff) | |
| download | rust-3baf6a4a749bd6ac4a8b9f1054d3f2ad2fc91e45.tar.gz rust-3baf6a4a749bd6ac4a8b9f1054d3f2ad2fc91e45.zip | |
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.
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/macros.rs | 4 |
1 files changed, 2 insertions, 2 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 |
