Skip to content

Commit

Permalink
Link Deref{,Mut} to TRPL on coercions.
Browse files Browse the repository at this point in the history
FIxes #26927
  • Loading branch information
steveklabnik committed Jul 23, 2015
1 parent d6a6178 commit a319d32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libcore/ops.rs
Expand Up @@ -1057,6 +1057,10 @@ impl<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
/// The `Deref` trait is used to specify the functionality of dereferencing
/// operations like `*v`.
///
/// `Deref` also enables ['`Deref` coercions'][coercions].
///
/// [coercions]: ../../book/deref-coercions.html
///
/// # Examples
///
/// A struct with a single field which is accessible via dereferencing the
Expand Down Expand Up @@ -1111,6 +1115,10 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
/// The `DerefMut` trait is used to specify the functionality of dereferencing
/// mutably like `*v = 1;`
///
/// `DerefMut` also enables ['`Deref` coercions'][coercions].
///
/// [coercions]: ../../book/deref-coercions.html
///
/// # Examples
///
/// A struct with a single field which is modifiable via dereferencing the
Expand Down

0 comments on commit a319d32

Please sign in to comment.