From c3a74fa4c6239f7396b0d1980c2510ffed8501af Mon Sep 17 00:00:00 2001 From: Florian Hartwig Date: Sat, 26 Sep 2015 20:40:22 +0200 Subject: [PATCH] Elide lifetime in Deref doc example --- src/libcore/ops.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 350ade22707..582c091091f 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -1628,7 +1628,7 @@ impl fmt::Debug for RangeTo { /// impl Deref for DerefExample { /// type Target = T; /// -/// fn deref<'a>(&'a self) -> &'a T { +/// fn deref(&self) -> &T { /// &self.value /// } /// }