Elide lifetimes in DerefMut documentation

- Elide lifetimes to increase the readability
   of `DerefMut` examples
This commit is contained in:
Dmitry Gritsay 2016-11-01 23:18:02 +02:00
parent ea4b94dab0
commit 7d5b788edf

View File

@ -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
/// }
/// }