Skip to content

Commit 13077f7

Browse files
authored
Desugar doc fix (#23186)
2 parents d36e423 + 2a683e3 commit 13077f7

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
@@ -1868,18 +1868,18 @@ object desugar {
18681868
/** Map n-ary function `(x1: T1, ..., xn: Tn) => body` where n != 1 to unary function as follows:
18691869
*
18701870
* (x$1: (T1, ..., Tn)) => {
1871-
* def x1: T1 = x$1._1
1871+
* val x1: T1 = x$1._1
18721872
* ...
1873-
* def xn: Tn = x$1._n
1873+
* val xn: Tn = x$1._n
18741874
* body
18751875
* }
18761876
*
18771877
* or if `isGenericTuple`
18781878
*
18791879
* (x$1: (T1, ... Tn) => {
1880-
* def x1: T1 = x$1.apply(0)
1880+
* val x1: T1 = x$1.apply(0)
18811881
* ...
1882-
* def xn: Tn = x$1.apply(n-1)
1882+
* val xn: Tn = x$1.apply(n-1)
18831883
* body
18841884
* }
18851885
*

0 commit comments

Comments
 (0)