Skip to content

Commit bdb2bde

Browse files
authored
Fix typo (#94)
1 parent db5cc6a commit bdb2bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/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)