diff options
| author | Surya Midatala <surya.midatala@protonmail.com> | 2020-08-23 21:26:17 +0530 |
|---|---|---|
| committer | Surya Midatala <surya.midatala@protonmail.com> | 2020-08-26 21:43:46 +0530 |
| commit | 621cbaafffd057e346049a1a0e9367444ff25d8d (patch) | |
| tree | 2df14815e2f09026eacdac6aae488a4316759221 | |
| parent | f10ab9139125a4a791e40dc2e51b5a4b06c22ea9 (diff) | |
| download | rust-621cbaafffd057e346049a1a0e9367444ff25d8d.tar.gz rust-621cbaafffd057e346049a1a0e9367444ff25d8d.zip | |
Use crate::mod to disambiguate links
| -rw-r--r-- | library/std/src/primitive_docs.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs index 0752ba0bfea..409de011ef8 100644 --- a/library/std/src/primitive_docs.rs +++ b/library/std/src/primitive_docs.rs @@ -545,7 +545,7 @@ mod prim_array {} /// means that elements are laid out so that every element is the same /// distance from its neighbors. /// -/// *[See also the `std::slice` module][`slice`].* +/// *[See also the `std::slice` module][`crate::slice`].* /// /// Slices are a view into a block of memory represented as a pointer and a /// length. @@ -590,7 +590,7 @@ mod prim_slice {} // /// String slices. /// -/// *[See also the `std::str` module][`str`].* +/// *[See also the `std::str` module][`crate::str`].* /// /// The `str` type, also called a 'string slice', is the most primitive string /// type. It is usually seen in its borrowed form, `&str`. It is also the type @@ -785,7 +785,7 @@ mod prim_tuple {} /// /// For more information on floating point numbers, see [Wikipedia][wikipedia]. /// -/// *[See also the `std::f32::consts` module][`f32::consts`].* +/// *[See also the `std::f32::consts` module][`crate::f32::consts`].* /// /// [wikipedia]: https://en.wikipedia.org/wiki/Single-precision_floating-point_format #[stable(feature = "rust1", since = "1.0.0")] @@ -799,7 +799,7 @@ mod prim_f32 {} /// `f32`] or [Wikipedia on double precision /// values][wikipedia] for more information. /// -/// *[See also the `std::f64::consts` module][`f64::consts`].* +/// *[See also the `std::f64::consts` module][`crate::f64::consts`].* /// /// [wikipedia]: https://en.wikipedia.org/wiki/Double-precision_floating-point_format #[stable(feature = "rust1", since = "1.0.0")] |
