Skip to content

Commit e344afc

Browse files
authored
Merge pull request #888 from mkinsey/patch-1
Fix typo in Sealed Classes section of pattern-matching.md
2 parents ce34c88 + 5c87f28 commit e344afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_tour/pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def goIdle(device: Device) = device match {
131131
`def goIdle` has a different behavior depending on the type of `Device`. This is useful when the case needs to call a method on the pattern. It is a convention to use the first letter of the type as the case identifier (`p` and `c` in this case).
132132

133133
## Sealed classes
134-
Traits and classes can be marked `sealed` which means all subtypes must be declared in the same file. The assures that all subtypes are known.
134+
Traits and classes can be marked `sealed` which means all subtypes must be declared in the same file. This assures that all subtypes are known.
135135

136136
```tut
137137
sealed abstract class Furniture

0 commit comments

Comments
 (0)