Skip to content

Commit 9e9a031

Browse files
committed
Reword sentences to enhance clarity
1 parent a732494 commit 9e9a031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/variances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ From this, we have to conclude that `Box[Cat]` and `Box[Animal]` can't have a su
112112

113113
The problem we ran in to above, is that because we could put a Dog in an Animal Box, a Cat Box can't be an Animal Box.
114114

115-
But what if we couldn't put a Dog in the box? Then we could just get our Cat back out and that's not a problem, so than it could follow the subtyping relationship. It turns out, that's indeed something we can do.
115+
But what if we couldn't put a Dog in the box? Then, we could just get our Cat back out without a problem, and it would adhere to the subtyping relationship. It turns out that that's possible to do.
116116

117117
{% tabs covariance_1 class=tabs-scala-version %}
118118
{% tab 'Scala 2' for=covariance_1 %}

0 commit comments

Comments
 (0)