diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-08-14 20:28:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-14 20:28:48 -0400 |
| commit | 1259db2fa4e2c249f891dfb02e2b7611e253e596 (patch) | |
| tree | f84e12432aa0d122fd41da583743ee5911ab6aa2 | |
| parent | a3a59a1711f596b5912e90f1f49487d80a0b5775 (diff) | |
| parent | 879107f1a8e4d6546370a9d6568b705d6005a420 (diff) | |
| download | rust-1259db2fa4e2c249f891dfb02e2b7611e253e596.tar.gz rust-1259db2fa4e2c249f891dfb02e2b7611e253e596.zip | |
Rollup merge of #43868 - lukaramu:issue-43866, r=steveklabnik
Add missing newline in Deref docs to fix rendering Fixes #43866. (Verified locally.) r? @steveklabnik
| -rw-r--r-- | src/libcore/ops/deref.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/ops/deref.rs b/src/libcore/ops/deref.rs index a2e7c44cb24..ea8dd820878 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<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` |
