Skip to content

Commit 72fea08

Browse files
authored
Update subtyping.md
Remove "in Rust" per style guidelines, and edit sentence for clarity.
1 parent 5c4a7a6 commit 72fea08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/subtyping.md

+2-2
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)