Fix typo in subtyping.md

pull/117/head
Colin Rofls 6 years ago committed by GitHub
parent bc9c1db3ab
commit 4f7df6c3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save