Update src/subtyping.md

Co-authored-by: Ryan Scheel <Ryan.havvy@gmail.com>
This commit is contained in:
pierwill 2022-07-27 09:22:18 -05:00 committed by GitHub
parent 72fea08918
commit 36a66c0ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Subtyping is implicit and can occur at any stage in type checking or
inference. Subtyping is restricted to two cases:
variance with respect to lifetimes, and between types with higher ranked
variance with respect to lifetimes and between types with higher ranked
lifetimes. If we were to erase lifetimes from types, then the only subtyping
would be due to type equality.