Skip to content

Commit

Permalink
Merge pull request rust-lang#236 from alercah/deref-coercion
Browse files Browse the repository at this point in the history
Document that &mut T can deref-coerce to &U.
  • Loading branch information
Havvy authored Feb 7, 2018
2 parents aa656b4 + 841a4f9 commit b8c6072
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 b8c6072

Please sign in to comment.