Skip to content

Commit 3ca0f31

Browse files
authored
Fix typo in PolymorphicTypes.scala
1 parent 64cd9b9 commit 3ca0f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scalatutorial/sections/PolymorphicTypes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ object PolymorphicTypes extends ScalaTutorialSection {
328328
* }}}
329329
*
330330
* In such a case, intuitively, it makes sense to have `Vet[Mammal] <: Vet[Zebra]` because
331-
* a vet that can treat any mammal is able to to treat a zebra in particular. This is
331+
* a vet that can treat any mammal is able to treat a zebra in particular. This is
332332
* an example of a contravariant type.
333333
*
334334
* == Variance Checks ==

0 commit comments

Comments
 (0)