Skip to content

Commit b8c6072

Browse files
authored
Merge pull request rust-lang#236 from alercah/deref-coercion
Document that &mut T can deref-coerce to &U.
2 parents aa656b4 + 841a4f9 commit b8c6072

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)