Skip to content

Commit 41bb1a4

Browse files
scala-improvement-botsila-strike
authored andcommitted
Update SIPs state
1 parent 7ff8171 commit 41bb1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_sips/sips/named-tuples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ and singleton types with case classes as underlying type (in terms of the implem
230230
We allow named patterns not just for named tuples but also for case classes. For instance:
231231
```scala
232232
city match
233-
case c @ City(name = "London") => println(p.population)
233+
case c @ City(name = "London") => println(c.population)
234234
case City(name = n, zip = 1026, population = pop) => println(pop)
235235
```
236236

0 commit comments

Comments
 (0)