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 7ff8171 commit 41bb1a4Copy full SHA for 41bb1a4
_sips/sips/named-tuples.md
@@ -230,7 +230,7 @@ and singleton types with case classes as underlying type (in terms of the implem
230
We allow named patterns not just for named tuples but also for case classes. For instance:
231
```scala
232
city match
233
- case c @ City(name = "London") => println(p.population)
+ case c @ City(name = "London") => println(c.population)
234
case City(name = n, zip = 1026, population = pop) => println(pop)
235
```
236
0 commit comments