Skip to content

Commit 6828fe7

Browse files
authored
Apply suggestions from code review
1 parent 0a416d8 commit 6828fe7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4755,7 +4755,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
47554755
}
47564756

47574757
/** Hook for inheriting Typers to do a last-effort adaptation. If a different
4758-
* tree is returned, we will readpat that one, ptherwise we issue a type error afterwards.
4758+
* tree is returned, we will re-adapt that one, otherwise we issue a type error afterwards.
4759+
``
47594760
*/
47604761
protected def healAdapt(tree: Tree, pt: Type)(using Context): Tree = tree
47614762

docs/_docs/reference/other-new-features/named-tuples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Bob match
9999
We allow named patterns not just for named tuples but also for case classes. For instance:
100100
```scala
101101
city match
102-
case c @ City(name = "London") => println(p.population)
102+
case c @ City(name = "London") => println(c.population)
103103
case City(name = n, zip = 1026, population = pop) => println(pop)
104104
```
105105

0 commit comments

Comments
 (0)