Elide lifetime in Deref doc example

This commit is contained in:
Florian Hartwig 2015-09-26 20:40:22 +02:00
parent 9169e6c53c
commit c3a74fa4c6

View File

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