Skip to content

Commit 0cf081d

Browse files
committed
Fix a couple of comments
1 parent 74153ea commit 0cf081d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ object desugar {
14801480
case _ => elems
14811481
end checkWellFormedTupleElems
14821482

1483-
/** Translate tuple expressions of arity <= 22
1483+
/** Translate tuple expressions
14841484
*
14851485
* () ==> ()
14861486
* (t) ==> t

library/src/scala/NamedTuple.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ object NamedTuple:
2525
/** The number of elements in this tuple */
2626
inline def size: Tuple.Size[V] = toTuple.size
2727

28-
// This intentionally works for empty named tuples as well. I think NnEmptyTuple is a dead end
29-
// and should be reverted, justy like NonEmptyList is also appealing at first, but a bad idea
28+
// This intentionally works for empty named tuples as well. I think NonEmptyTuple is a dead end
29+
// and should be reverted, just like NonEmptyList is also appealing at first, but a bad idea
3030
// in the end.
3131

3232
/** The value (without the name) at index `n` of this tuple */

0 commit comments

Comments
 (0)