Skip to content

Commit

Permalink
Merge pull request #117 from cmyr/patch-4
Browse files Browse the repository at this point in the history
Fix typo in subtyping.md
  • Loading branch information
Gankra authored Feb 26, 2019
2 parents 839e7b6 + 4f7df6c commit a2d86d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subtyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ fn evil_feeder<T>(input: &mut T, val: T) {
}
```

All it does it take a mutable reference and a value and overwrite the referent with it.
All it does is take a mutable reference and a value and overwrite the referent with it.
What's important about this function is that it creates a type equality constraint. It
clearly says in its signature the referent and the value must be the *exact same* type.

Expand Down

0 comments on commit a2d86d3

Please sign in to comment.