Rollup merge of #28678 - fhartwig:deref-elide, r=steveklabnik

The lifetime can be elided here, and I think eliding it makes the example slightly simpler.
This commit is contained in:
Steve Klabnik 2015-09-26 18:00:38 -06:00
commit 66339884df

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