Skip to content

Commit

Permalink
Fix several broken links in doc that used the wrong qualifier or Self::
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Nov 30, 2020
1 parent c0560c2 commit 5bdd640
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock
Expand Up @@ -5256,7 +5256,7 @@ dependencies = [
"chrono",
"lazy_static",
"matchers",
"parking_lot 0.9.0",
"parking_lot 0.11.0",
"regex",
"serde",
"serde_json",
Expand Down
6 changes: 3 additions & 3 deletions library/core/src/cell.rs
Expand Up @@ -929,7 +929,7 @@ impl<T: ?Sized> RefCell<T> {
/// Also, please be aware that this method is only for special circumstances and is usually
/// not what you want. In case of doubt, use [`borrow_mut`] instead.
///
/// [`borrow_mut`]: Self::borrow_mut()
/// [`borrow_mut`]: RefCell::borrow_mut()
///
/// # Examples
///
Expand All @@ -953,7 +953,7 @@ impl<T: ?Sized> RefCell<T> {
/// ensure no borrows exist and then resets the state tracking shared borrows. This is relevant
/// if some `Ref` or `RefMut` borrows have been leaked.
///
/// [`get_mut`]: Self::get_mut()
/// [`get_mut`]: RefCell::get_mut()
///
/// # Examples
///
Expand Down Expand Up @@ -1745,7 +1745,7 @@ impl<T: ?Sized> UnsafeCell<T> {
/// when casting to `&mut T`, and ensure that there are no mutations
/// or mutable aliases going on when casting to `&T`.
///
/// [`get`]: Self::get()
/// [`get`]: UnsafeCell::get()
///
/// # Examples
///
Expand Down
10 changes: 5 additions & 5 deletions library/core/src/num/f32.rs
Expand Up @@ -776,8 +776,8 @@ impl f32 {
/// As the target platform's native endianness is used, portable code
/// should use [`to_be_bytes`] or [`to_le_bytes`], as appropriate, instead.
///
/// [`to_be_bytes`]: prim@f32::to_be_bytes()
/// [`to_le_bytes`]: prim@f32::to_le_bytes()
/// [`to_be_bytes`]: #method.to_be_bytes
/// [`to_le_bytes`]: #method.to_le_bytes
///
/// # Examples
///
Expand All @@ -804,7 +804,7 @@ impl f32 {
///
/// [`to_ne_bytes`] should be preferred over this whenever possible.
///
/// [`to_ne_bytes`]: prim@f32::to_ne_bytes()
/// [`to_ne_bytes`]: #method.to_ne_bytes
///
/// # Examples
///
Expand Down Expand Up @@ -864,8 +864,8 @@ impl f32 {
/// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
/// appropriate instead.
///
/// [`from_be_bytes`]: prim@f32::from_be_bytes()
/// [`from_le_bytes`]: prim@f32::from_le_bytes()
/// [`from_be_bytes`]: #method.from_be_bytes
/// [`from_le_bytes`]: #method.from_le_bytes
///
/// # Examples
///
Expand Down
10 changes: 5 additions & 5 deletions library/core/src/num/f64.rs
Expand Up @@ -790,8 +790,8 @@ impl f64 {
/// As the target platform's native endianness is used, portable code
/// should use [`to_be_bytes`] or [`to_le_bytes`], as appropriate, instead.
///
/// [`to_be_bytes`]: prim@f64::to_be_bytes()
/// [`to_le_bytes`]: prim@f64::to_le_bytes()
/// [`to_be_bytes`]: #method.to_be_bytes
/// [`to_le_bytes`]: #method.to_le_bytes
///
/// # Examples
///
Expand All @@ -818,7 +818,7 @@ impl f64 {
///
/// [`to_ne_bytes`] should be preferred over this whenever possible.
///
/// [`to_ne_bytes`]: prim@f64::to_ne_bytes()
/// [`to_ne_bytes`]: #method.to_ne_bytes
///
/// # Examples
///
Expand Down Expand Up @@ -878,8 +878,8 @@ impl f64 {
/// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
/// appropriate instead.
///
/// [`from_be_bytes`]: prim@f64::from_be_bytes()
/// [`from_le_bytes`]: prim@f64::from_le_bytes()
/// [`from_be_bytes`]: #method.from_be_bytes
/// [`from_le_bytes`]: #method.from_le_bytes
///
/// # Examples
///
Expand Down
4 changes: 2 additions & 2 deletions library/core/src/str/mod.rs
Expand Up @@ -2254,7 +2254,7 @@ impl str {
/// To return a new uppercased value without modifying the existing one, use
/// [`to_ascii_uppercase()`].
///
/// [`to_ascii_uppercase()`]: prim@str::to_ascii_uppercase()
/// [`to_ascii_uppercase()`]: #method.to_ascii_uppercase
///
/// # Examples
///
Expand All @@ -2281,7 +2281,7 @@ impl str {
/// To return a new lowercased value without modifying the existing one, use
/// [`to_ascii_lowercase()`].
///
/// [`to_ascii_lowercase()`]: prim@str::to_ascii_lowercase()
/// [`to_ascii_lowercase()`]: #method.to_ascii_lowercase
///
/// # Examples
///
Expand Down

0 comments on commit 5bdd640

Please sign in to comment.