Skip to content

Commit 9b19045

Browse files
Merge pull request #804 from Abrasha/fix/typo-in-tutorial
Fix a typo, add missing space in code snippet
2 parents 7469514 + baa4453 commit 9b19045

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tutorials/tour/_posts/2017-02-13-pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ In the `case Email(email, _, _) if importantPeopleInfo.contains(email)`, the pat
114114
You can match on the type like so:
115115
```tut
116116
abstract class Device
117-
case class Phone(model: String) extends Device{
117+
case class Phone(model: String) extends Device {
118118
def screenOff = "Turning screen off"
119119
}
120120
case class Computer(model: String) extends Device {

tutorials/tour/_posts/2017-02-13-traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ iterator.next() // prints 1
6060
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.
6161

6262
## Subtyping
63-
Subtypes of traits can be used where a the trait is required.
63+
Where a given trait is required, a subtype of the trait can be used instead.
6464
```tut
6565
import scala.collection.mutable.ArrayBuffer
6666

0 commit comments

Comments
 (0)