Skip to content

Commit 5bdd640

Browse files
committed
Fix several broken links in doc that used the wrong qualifier or Self::
1 parent c0560c2 commit 5bdd640

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

Cargo.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5256,7 +5256,7 @@ dependencies = [
52565256
"chrono",
52575257
"lazy_static",
52585258
"matchers",
5259-
"parking_lot 0.9.0",
5259+
"parking_lot 0.11.0",
52605260
"regex",
52615261
"serde",
52625262
"serde_json",

library/core/src/cell.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ impl<T: ?Sized> RefCell<T> {
929929
/// Also, please be aware that this method is only for special circumstances and is usually
930930
/// not what you want. In case of doubt, use [`borrow_mut`] instead.
931931
///
932-
/// [`borrow_mut`]: Self::borrow_mut()
932+
/// [`borrow_mut`]: RefCell::borrow_mut()
933933
///
934934
/// # Examples
935935
///
@@ -953,7 +953,7 @@ impl<T: ?Sized> RefCell<T> {
953953
/// ensure no borrows exist and then resets the state tracking shared borrows. This is relevant
954954
/// if some `Ref` or `RefMut` borrows have been leaked.
955955
///
956-
/// [`get_mut`]: Self::get_mut()
956+
/// [`get_mut`]: RefCell::get_mut()
957957
///
958958
/// # Examples
959959
///
@@ -1745,7 +1745,7 @@ impl<T: ?Sized> UnsafeCell<T> {
17451745
/// when casting to `&mut T`, and ensure that there are no mutations
17461746
/// or mutable aliases going on when casting to `&T`.
17471747
///
1748-
/// [`get`]: Self::get()
1748+
/// [`get`]: UnsafeCell::get()
17491749
///
17501750
/// # Examples
17511751
///

library/core/src/num/f32.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ impl f32 {
776776
/// As the target platform's native endianness is used, portable code
777777
/// should use [`to_be_bytes`] or [`to_le_bytes`], as appropriate, instead.
778778
///
779-
/// [`to_be_bytes`]: prim@f32::to_be_bytes()
780-
/// [`to_le_bytes`]: prim@f32::to_le_bytes()
779+
/// [`to_be_bytes`]: #method.to_be_bytes
780+
/// [`to_le_bytes`]: #method.to_le_bytes
781781
///
782782
/// # Examples
783783
///
@@ -804,7 +804,7 @@ impl f32 {
804804
///
805805
/// [`to_ne_bytes`] should be preferred over this whenever possible.
806806
///
807-
/// [`to_ne_bytes`]: prim@f32::to_ne_bytes()
807+
/// [`to_ne_bytes`]: #method.to_ne_bytes
808808
///
809809
/// # Examples
810810
///
@@ -864,8 +864,8 @@ impl f32 {
864864
/// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
865865
/// appropriate instead.
866866
///
867-
/// [`from_be_bytes`]: prim@f32::from_be_bytes()
868-
/// [`from_le_bytes`]: prim@f32::from_le_bytes()
867+
/// [`from_be_bytes`]: #method.from_be_bytes
868+
/// [`from_le_bytes`]: #method.from_le_bytes
869869
///
870870
/// # Examples
871871
///

library/core/src/num/f64.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,8 @@ impl f64 {
790790
/// As the target platform's native endianness is used, portable code
791791
/// should use [`to_be_bytes`] or [`to_le_bytes`], as appropriate, instead.
792792
///
793-
/// [`to_be_bytes`]: prim@f64::to_be_bytes()
794-
/// [`to_le_bytes`]: prim@f64::to_le_bytes()
793+
/// [`to_be_bytes`]: #method.to_be_bytes
794+
/// [`to_le_bytes`]: #method.to_le_bytes
795795
///
796796
/// # Examples
797797
///
@@ -818,7 +818,7 @@ impl f64 {
818818
///
819819
/// [`to_ne_bytes`] should be preferred over this whenever possible.
820820
///
821-
/// [`to_ne_bytes`]: prim@f64::to_ne_bytes()
821+
/// [`to_ne_bytes`]: #method.to_ne_bytes
822822
///
823823
/// # Examples
824824
///
@@ -878,8 +878,8 @@ impl f64 {
878878
/// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
879879
/// appropriate instead.
880880
///
881-
/// [`from_be_bytes`]: prim@f64::from_be_bytes()
882-
/// [`from_le_bytes`]: prim@f64::from_le_bytes()
881+
/// [`from_be_bytes`]: #method.from_be_bytes
882+
/// [`from_le_bytes`]: #method.from_le_bytes
883883
///
884884
/// # Examples
885885
///

library/core/src/str/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ impl str {
22542254
/// To return a new uppercased value without modifying the existing one, use
22552255
/// [`to_ascii_uppercase()`].
22562256
///
2257-
/// [`to_ascii_uppercase()`]: prim@str::to_ascii_uppercase()
2257+
/// [`to_ascii_uppercase()`]: #method.to_ascii_uppercase
22582258
///
22592259
/// # Examples
22602260
///
@@ -2281,7 +2281,7 @@ impl str {
22812281
/// To return a new lowercased value without modifying the existing one, use
22822282
/// [`to_ascii_lowercase()`].
22832283
///
2284-
/// [`to_ascii_lowercase()`]: prim@str::to_ascii_lowercase()
2284+
/// [`to_ascii_lowercase()`]: #method.to_ascii_lowercase
22852285
///
22862286
/// # Examples
22872287
///

0 commit comments

Comments
 (0)