Skip to content

Commit 841a4f9

Browse files
author
Alexis Hunt
committed
Document that &mut T can deref-coerce to &U.
This finishes documenting RFC 0241.
1 parent aa656b4 commit 841a4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type-coercions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Coercion is allowed between the following types:
106106

107107
* `&mut T` to `*mut T`
108108

109-
* `&T` to `&U` if `T` implements `Deref<Target = U>`. For example:
109+
* `&T` or `&mut T` to `&U` if `T` implements `Deref<Target = U>`. For example:
110110

111111
```rust
112112
use std::ops::Deref;

0 commit comments

Comments
 (0)