summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorFlorian Hartwig <florian.j.hartwig@gmail.com>2015-09-26 20:40:22 +0200
committerFlorian Hartwig <florian.j.hartwig@gmail.com>2015-09-26 20:40:22 +0200
commitc3a74fa4c6239f7396b0d1980c2510ffed8501af (patch)
treeaa49b69cee64433ba6f8cd44db24a6d7d8ab1751 /src/libcore
parent9169e6c53c53999d0ca176067a36c57aef84757b (diff)
downloadrust-c3a74fa4c6239f7396b0d1980c2510ffed8501af.tar.gz
rust-c3a74fa4c6239f7396b0d1980c2510ffed8501af.zip
Elide lifetime in Deref doc example
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/ops.rs2
1 files changed, 1 insertions, 1 deletions
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<Idx: fmt::Debug> fmt::Debug for RangeTo<Idx> {
 /// impl<T> Deref for DerefExample<T> {
 ///     type Target = T;
 ///
-///     fn deref<'a>(&'a self) -> &'a T {
+///     fn deref(&self) -> &T {
 ///         &self.value
 ///     }
 /// }