Skip to content

Commit 8535aa2

Browse files
Linyxustgodzik
authored andcommitted
Fix typo in Mode.toString (scala#26223)
## How much have you relied on LLM-based tools in this contribution? LLM identifies this mistake. Full report: https://folium.capless.cc/claude-review.html ## How was the solution tested? Existing tests. [Cherry-picked e018144]
1 parent 7e71c74 commit 8535aa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/src/dotty/tools/dotc/core/Mode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ case class Mode(val bits: Int) extends AnyVal {
1919
def isExpr: Boolean = (this & PatternOrTypeBits) == None
2020

2121
override def toString: String =
22-
(0 until 31).filter(i => (bits & (1 << i)) != 0).map(modeName).mkString("Mode(", ",", ")")
22+
(0 to 31).filter(i => (bits & (1 << i)) != 0).map(modeName).mkString("Mode(", ",", ")")
2323

2424
def ==(that: Mode): Boolean = this.bits == that.bits
2525
def !=(that: Mode): Boolean = this.bits != that.bits

0 commit comments

Comments
 (0)