Skip to content

Commit 7aa51e6

Browse files
authored
Merge pull request #421 from scala/backport-lts-3.3-23186
Backport "Desugar doc fix" to 3.3 LTS
2 parents d8e58ad + c8ed940 commit 7aa51e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,18 +1487,18 @@ object desugar {
14871487
/** Map n-ary function `(x1: T1, ..., xn: Tn) => body` where n != 1 to unary function as follows:
14881488
*
14891489
* (x$1: (T1, ..., Tn)) => {
1490-
* def x1: T1 = x$1._1
1490+
* val x1: T1 = x$1._1
14911491
* ...
1492-
* def xn: Tn = x$1._n
1492+
* val xn: Tn = x$1._n
14931493
* body
14941494
* }
14951495
*
14961496
* or if `isGenericTuple`
14971497
*
14981498
* (x$1: (T1, ... Tn) => {
1499-
* def x1: T1 = x$1.apply(0)
1499+
* val x1: T1 = x$1.apply(0)
15001500
* ...
1501-
* def xn: Tn = x$1.apply(n-1)
1501+
* val xn: Tn = x$1.apply(n-1)
15021502
* body
15031503
* }
15041504
*

0 commit comments

Comments
 (0)