Skip to content

Commit 2d66852

Browse files
authored
Fix typo/minor grammar error in subtyping.md (#317)
1 parent 650d245 commit 2d66852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subtyping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ And that's why function types, unlike anything else in the language, are
418418
**contra**variant over their arguments.
419419

420420
Now, this is all well and good for the types the standard library provides, but
421-
how is variance determined for type that *you* define? A struct, informally
421+
how is variance determined for types that *you* define? A struct, informally
422422
speaking, inherits the variance of its fields. If a struct `MyType`
423423
has a generic argument `A` that is used in a field `a`, then MyType's variance
424424
over `A` is exactly `a`'s variance over `A`.

0 commit comments

Comments
 (0)