Skip to content

Commit

Permalink
Document that &mut T can deref-coerce to &U.
Browse files Browse the repository at this point in the history
This finishes documenting RFC 0241.
  • Loading branch information
Alexis Hunt committed Feb 7, 2018
1 parent aa656b4 commit 841a4f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type-coercions.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Coercion is allowed between the following types:

* `&mut T` to `*mut T`

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

```rust
use std::ops::Deref;
Expand Down

0 comments on commit 841a4f9

Please sign in to comment.