Skip to content

Commit 3eb6daa

Browse files
Minor cleanup to subtyping algorithm (#2789)
1 parent b0825e8 commit 3eb6daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/type-system/subtyping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ We say that a type `T0` is a subtype of a type `T1` (written `T0 <: T1`) when:
169169
- If `T1` is `Null`, `S?` or `S*` for some `S`, then the query is true.
170170
- Otherwise, the query is false
171171

172-
- **Left Legacy** if `T0` is `S0*` then:
172+
- **Left Legacy**: if `T0` is `S0*` then:
173173
- `T0 <: T1` iff `S0 <: T1`.
174174

175-
- **Right Legacy** `T1` is `S1*` then:
175+
- **Right Legacy**: if `T1` is `S1*` then:
176176
- `T0 <: T1` iff `T0 <: S1?`.
177177

178178
- **Left FutureOr**: if `T0` is `FutureOr<S0>` then:

0 commit comments

Comments
 (0)