We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04896fd commit baa4453Copy full SHA for baa4453
tutorials/tour/_posts/2017-02-13-traits.md
@@ -60,7 +60,7 @@ iterator.next() // prints 1
60
This `IntIterator` class takes a parameter `to` as an upper bound. It `extends Iterator[Int]` which means that the `next` method must return an Int.
61
62
## Subtyping
63
-Subtypes of traits can be used where a trait is required.
+Where a given trait is required, a subtype of the trait can be used instead.
64
```tut
65
import scala.collection.mutable.ArrayBuffer
66
0 commit comments