Skip to content

Commit c7a360e

Browse files
Update subtyping.md
Remove "in Rust" per style guidelines, and edit sentence for clarity.
1 parent b60b626 commit c7a360e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/subtyping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Subtyping and Variance
22

33
Subtyping is implicit and can occur at any stage in type checking or
4-
inference. Subtyping in Rust is very restricted and occurs only due to
5-
variance with respect to lifetimes and between types with higher ranked
4+
inference. Subtyping is restricted to two cases:
5+
variance with respect to lifetimes, and between types with higher ranked
66
lifetimes. If we were to erase lifetimes from types, then the only subtyping
77
would be due to type equality.
88

0 commit comments

Comments
 (0)