Skip to content

Commit 63f87ee

Browse files
committed
Fix typo
1 parent 2c97437 commit 63f87ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ object messages {
347347
def closest: List[(Int, String)] = candidates
348348
.toList
349349
.map(n => (distance(n.show, missing), n))
350-
.filter((d, n) => d <= maxDist && d < missing.length & d < n.length)
350+
.filter((d, n) => d <= maxDist && d < missing.length && d < n.length)
351351
.sorted // sort by distance first, alphabetically second
352352

353353
val finalAddendum =

0 commit comments

Comments
 (0)