Skip to content

Commit 482685d

Browse files
committedAug 31, 2024·
Update SIPs state
1 parent 27b844b commit 482685d

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)
Please sign in to comment.