Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Fix typo in 2.12.1.md #138

Merged
merged 1 commit into from
Feb 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion notes/2.12.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ inexhaustive matches against unsealed traits.
The following will now warn that the match might not be exhaustive,

```scala
def nonExhautiveIfWeAssumeGuardsFalse(x: Option[Int]): Int = x match {
def nonExhaustiveIfWeAssumeGuardsFalse(x: Option[Int]): Int = x match {
case Some(n) if n % 2 == 0 => n
case None => 0
}
Expand Down