From 7d5b788edffc447946e8c27d683e8604b59443c5 Mon Sep 17 00:00:00 2001 From: Dmitry Gritsay Date: Tue, 1 Nov 2016 23:18:02 +0200 Subject: [PATCH] Elide lifetimes in DerefMut documentation - Elide lifetimes to increase the readability of `DerefMut` examples --- src/libcore/ops.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 62aa57bbbbf05..5c36d337799eb 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -2484,13 +2484,13 @@ impl<'a, T: ?Sized> Deref for &'a mut T { /// impl Deref for DerefMutExample { /// type Target = T; /// -/// fn deref<'a>(&'a self) -> &'a T { +/// fn deref(&self) -> &T { /// &self.value /// } /// } /// /// impl DerefMut for DerefMutExample { -/// fn deref_mut<'a>(&'a mut self) -> &'a mut T { +/// fn deref_mut(&mut self) -> &mut T { /// &mut self.value /// } /// }