Skip to content

Commit

Permalink
Elide lifetimes in DerefMut documentation
Browse files Browse the repository at this point in the history
 - Elide lifetimes to increase the readability
   of `DerefMut` examples
  • Loading branch information
d-unsed committed Nov 1, 2016
1 parent ea4b94d commit 7d5b788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2484,13 +2484,13 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
/// impl<T> Deref for DerefMutExample<T> {
/// type Target = T;
///
/// fn deref<'a>(&'a self) -> &'a T {
/// fn deref(&self) -> &T {
/// &self.value
/// }
/// }
///
/// impl<T> DerefMut for DerefMutExample<T> {
/// fn deref_mut<'a>(&'a mut self) -> &'a mut T {
/// fn deref_mut(&mut self) -> &mut T {
/// &mut self.value
/// }
/// }
Expand Down

0 comments on commit 7d5b788

Please sign in to comment.