From 879107f1a8e4d6546370a9d6568b705d6005a420 Mon Sep 17 00:00:00 2001 From: lukaramu Date: Mon, 14 Aug 2017 22:12:33 +0200 Subject: [PATCH] Add missing newline in Deref docs to fix rendering Fixes #43866. --- src/libcore/ops/deref.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcore/ops/deref.rs b/src/libcore/ops/deref.rs index a2e7c44cb249f..ea8dd82087849 100644 --- a/src/libcore/ops/deref.rs +++ b/src/libcore/ops/deref.rs @@ -27,6 +27,7 @@ /// # More on `Deref` coercion /// /// If `T` implements `Deref`, and `x` is a value of type `T`, then: +/// /// * In immutable contexts, `*x` on non-pointer types is equivalent to /// `*Deref::deref(&x)`. /// * Values of type `&T` are coerced to values of type `&U` @@ -113,6 +114,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T { /// /// If `T` implements `DerefMut`, and `x` is a value of type `T`, /// then: +/// /// * In mutable contexts, `*x` on non-pointer types is equivalent to /// `*Deref::deref(&x)`. /// * Values of type `&mut T` are coerced to values of type `&mut U`