Skip to content

Commit

Permalink
Fix typo (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
pWydmuch authored Aug 30, 2024
1 parent db5cc6a commit bdb2bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/named-tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ and singleton types with case classes as underlying type (in terms of the implem
We allow named patterns not just for named tuples but also for case classes. For instance:
```scala
city match
case c @ City(name = "London") => println(p.population)
case c @ City(name = "London") => println(c.population)
case City(name = n, zip = 1026, population = pop) => println(pop)
```

Expand Down

0 comments on commit bdb2bde

Please sign in to comment.