Skip to content

Commit

Permalink
Rollup merge of #43868 - lukaramu:issue-43866, r=steveklabnik
Browse files Browse the repository at this point in the history
Add missing newline in Deref docs to fix rendering

Fixes #43866.

(Verified locally.)

r? @steveklabnik
  • Loading branch information
frewsxcv authored Aug 15, 2017
2 parents a3a59a1 + 879107f commit 1259db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/ops/deref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 1259db2

Please sign in to comment.