about summary refs log tree commit diff
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2021-04-30 19:42:25 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2021-05-06 11:37:46 -0700
commit3d9660111cd8a99f4bd08eac282202bff37103b3 (patch)
treea98a0f9f1e16839b36a16e0d5f8fc88ba36d784c
parent5fd6081de67a7fd306ba509b6ebf85b8e07b636a (diff)
downloadrust-3d9660111cd8a99f4bd08eac282202bff37103b3.tar.gz
rust-3d9660111cd8a99f4bd08eac282202bff37103b3.zip
Fix rustdoc::private-intra-doc-links errors in the docs
-rw-r--r--library/core/src/ops/mod.rs2
-rw-r--r--library/core/src/ops/try_trait.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ops/mod.rs b/library/core/src/ops/mod.rs
index 4fca2898b56..2c4de92d383 100644
--- a/library/core/src/ops/mod.rs
+++ b/library/core/src/ops/mod.rs
@@ -211,7 +211,7 @@ pub use self::unsize::DispatchFromDyn;
 #[unstable(feature = "control_flow_enum", reason = "new API", issue = "75744")]
 pub use self::control_flow::ControlFlow;
 
-/// [`TryV1`] and [`TryV2`] have different associated type names,
+/// `TryV1` and `TryV2` have different associated type names,
 /// so rather than need `bootstrap` checks all over the library,
 /// centralize the difference to this one trait alias.
 ///
diff --git a/library/core/src/ops/try_trait.rs b/library/core/src/ops/try_trait.rs
index 35989d2bc05..87044ed2fce 100644
--- a/library/core/src/ops/try_trait.rs
+++ b/library/core/src/ops/try_trait.rs
@@ -222,7 +222,7 @@ pub trait Try: FromResidual {
     fn branch(self) -> ControlFlow<Self::Residual, Self::Output>;
 }
 
-/// Used to specify which residuals can be converted into which [`Try`] types.
+/// Used to specify which residuals can be converted into which [`crate::ops::Try`] types.
 ///
 /// Every `Try` type needs to be recreatable from its own associated
 /// `Residual` type, but can also have additional `FromResidual` implementations