Skip to content

Commit 879107f

Browse files
author
lukaramu
committed
Add missing newline in Deref docs to fix rendering
Fixes #43866.
1 parent 0d12553 commit 879107f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/ops/deref.rs

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
/// # More on `Deref` coercion
2828
///
2929
/// If `T` implements `Deref<Target = U>`, and `x` is a value of type `T`, then:
30+
///
3031
/// * In immutable contexts, `*x` on non-pointer types is equivalent to
3132
/// `*Deref::deref(&x)`.
3233
/// * Values of type `&T` are coerced to values of type `&U`
@@ -113,6 +114,7 @@ impl<'a, T: ?Sized> Deref for &'a mut T {
113114
///
114115
/// If `T` implements `DerefMut<Target = U>`, and `x` is a value of type `T`,
115116
/// then:
117+
///
116118
/// * In mutable contexts, `*x` on non-pointer types is equivalent to
117119
/// `*Deref::deref(&x)`.
118120
/// * Values of type `&mut T` are coerced to values of type `&mut U`

0 commit comments

Comments
 (0)