Rollup merge of #43868 - lukaramu:issue-43866, r=steveklabnik

Add missing newline in Deref docs to fix rendering

Fixes #43866.

(Verified locally.)

r? @steveklabnik
This commit is contained in:
Corey Farwell 2017-08-14 20:28:48 -04:00 committed by GitHub
commit 1259db2fa4

View file

@ -27,6 +27,7 @@
/// # More on `Deref` coercion
///
/// If `T` implements `Deref<Target = U>`, 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<Target = U>`, 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`