about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Tolnay <dtolnay@gmail.com>2023-09-27 22:55:34 -0700
committerGitHub <noreply@github.com>2023-09-27 22:55:34 -0700
commite2f70324089a2eb75d52552c058170e37d0064f0 (patch)
treed8dd137c9ec22355d6cc9d1ccb574bc13e0a442f
parent659c17a6760ca03d3d69e2f44cef8fb3932cec95 (diff)
downloadrust-e2f70324089a2eb75d52552c058170e37d0064f0.tar.gz
rust-e2f70324089a2eb75d52552c058170e37d0064f0.zip
Fix "unresolved link to std::fmt::Error"
error: unresolved link to `std::fmt::Error`
       --> library/core/src/fmt/mod.rs:115:52
        |
    115 |     /// This function will return an instance of [`std::fmt::Error`] on error.
        |
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
-rw-r--r--library/core/src/fmt/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index 5c6359a9025..d99d9dea87c 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/core/src/fmt/mod.rs
@@ -112,7 +112,7 @@ pub trait Write {
     ///
     /// # Errors
     ///
-    /// This function will return an instance of [`std::fmt::Error`] on error.
+    /// This function will return an instance of [`std::fmt::Error`][Error] on error.
     ///
     /// The purpose of that error is to abort the formatting operation when the underlying
     /// destination encounters some error preventing it from accepting more text; it should