Skip to content

Commit 621cbaa

Browse files
committed
Use crate::mod to disambiguate links
1 parent f10ab91 commit 621cbaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/std/src/primitive_docs.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ mod prim_array {}
545545
/// means that elements are laid out so that every element is the same
546546
/// distance from its neighbors.
547547
///
548-
/// *[See also the `std::slice` module][`slice`].*
548+
/// *[See also the `std::slice` module][`crate::slice`].*
549549
///
550550
/// Slices are a view into a block of memory represented as a pointer and a
551551
/// length.
@@ -590,7 +590,7 @@ mod prim_slice {}
590590
//
591591
/// String slices.
592592
///
593-
/// *[See also the `std::str` module][`str`].*
593+
/// *[See also the `std::str` module][`crate::str`].*
594594
///
595595
/// The `str` type, also called a 'string slice', is the most primitive string
596596
/// type. It is usually seen in its borrowed form, `&str`. It is also the type
@@ -785,7 +785,7 @@ mod prim_tuple {}
785785
///
786786
/// For more information on floating point numbers, see [Wikipedia][wikipedia].
787787
///
788-
/// *[See also the `std::f32::consts` module][`f32::consts`].*
788+
/// *[See also the `std::f32::consts` module][`crate::f32::consts`].*
789789
///
790790
/// [wikipedia]: https://en.wikipedia.org/wiki/Single-precision_floating-point_format
791791
#[stable(feature = "rust1", since = "1.0.0")]
@@ -799,7 +799,7 @@ mod prim_f32 {}
799799
/// `f32`] or [Wikipedia on double precision
800800
/// values][wikipedia] for more information.
801801
///
802-
/// *[See also the `std::f64::consts` module][`f64::consts`].*
802+
/// *[See also the `std::f64::consts` module][`crate::f64::consts`].*
803803
///
804804
/// [wikipedia]: https://en.wikipedia.org/wiki/Double-precision_floating-point_format
805805
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)