From 76fd8d7e74a000be4d736c47b55c583d31c907d0 Mon Sep 17 00:00:00 2001 From: Mara Date: Thu, 25 Feb 2021 12:41:39 +0100 Subject: [PATCH] Use intra-doc links. Co-authored-by: Joshua Nelson --- library/core/src/prelude/mod.rs | 6 +++--- library/core/src/prelude/v1.rs | 2 +- library/std/src/prelude/mod.rs | 6 +++--- library/std/src/prelude/v1.rs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/library/core/src/prelude/mod.rs b/library/core/src/prelude/mod.rs index 1cb65eabb9a62..8f57db49496c3 100644 --- a/library/core/src/prelude/mod.rs +++ b/library/core/src/prelude/mod.rs @@ -10,7 +10,7 @@ pub mod v1; /// The 2015 version of the core prelude. /// -/// See the [module-level documentation](../index.html) for more. +/// See the [module-level documentation](self) for more. #[unstable(feature = "prelude_2015", issue = "none")] pub mod rust_2015 { #[unstable(feature = "prelude_2015", issue = "none")] @@ -20,7 +20,7 @@ pub mod rust_2015 { /// The 2018 version of the core prelude. /// -/// See the [module-level documentation](../index.html) for more. +/// See the [module-level documentation](self) for more. #[unstable(feature = "prelude_2018", issue = "none")] pub mod rust_2018 { #[unstable(feature = "prelude_2018", issue = "none")] @@ -30,7 +30,7 @@ pub mod rust_2018 { /// The 2021 version of the core prelude. /// -/// See the [module-level documentation](../index.html) for more. +/// See the [module-level documentation](self) for more. #[unstable(feature = "prelude_2021", issue = "none")] pub mod rust_2021 { #[unstable(feature = "prelude_2021", issue = "none")] diff --git a/library/core/src/prelude/v1.rs b/library/core/src/prelude/v1.rs index 993281fe88247..dbbd10cd9930d 100644 --- a/library/core/src/prelude/v1.rs +++ b/library/core/src/prelude/v1.rs @@ -1,6 +1,6 @@ //! The first version of the core prelude. //! -//! See the [module-level documentation](../index.html) for more. +//! See the [module-level documentation](super) for more. #![stable(feature = "core_prelude", since = "1.4.0")] diff --git a/library/std/src/prelude/mod.rs b/library/std/src/prelude/mod.rs index bb45aed90e7f4..505b5f3013b35 100644 --- a/library/std/src/prelude/mod.rs +++ b/library/std/src/prelude/mod.rs @@ -87,7 +87,7 @@ pub mod v1; /// The 2015 version of the prelude of The Rust Standard Library. /// -/// See the [module-level documentation](../index.html) for more. +/// See the [module-level documentation](self) for more. #[unstable(feature = "prelude_2015", issue = "none")] pub mod rust_2015 { #[unstable(feature = "prelude_2015", issue = "none")] @@ -97,7 +97,7 @@ pub mod rust_2015 { /// The 2018 version of the prelude of The Rust Standard Library. /// -/// See the [module-level documentation](../index.html) for more. +/// See the [module-level documentation](self) for more. #[unstable(feature = "prelude_2018", issue = "none")] pub mod rust_2018 { #[unstable(feature = "prelude_2018", issue = "none")] @@ -107,7 +107,7 @@ pub mod rust_2018 { /// The 2021 version of the prelude of The Rust Standard Library. /// -/// See the [module-level documentation](../index.html) for more. +/// See the [module-level documentation](self) for more. #[unstable(feature = "prelude_2021", issue = "none")] pub mod rust_2021 { #[unstable(feature = "prelude_2021", issue = "none")] diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs index ef9aec54a4ca2..15afe19f6416c 100644 --- a/library/std/src/prelude/v1.rs +++ b/library/std/src/prelude/v1.rs @@ -1,6 +1,6 @@ //! The first version of the prelude of The Rust Standard Library. //! -//! See the [module-level documentation](../index.html) for more. +//! See the [module-level documentation](super) for more. #![stable(feature = "rust1", since = "1.0.0")]