Skip to content

Commit 2b96e8e

Browse files
dwijnandsmarter
andauthored
Fix a typo
Co-authored-by: Guillaume Martres <[email protected]>
1 parent f1a0d62 commit 2b96e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/repl/ReplCompiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class ReplCompiler extends Compiler {
8888
var valIdx = state.valIndex
8989
val defs = new mutable.ListBuffer[Tree]
9090

91-
/** If the user inputs a definition that's name is of the form REPL_RES_PREFIX and a number,
91+
/** If the user inputs a definition whose name is of the form REPL_RES_PREFIX and a number,
9292
* such as `val res9 = 1`, we bump `valIdx` to avoid name clashes. lampepfl/dotty#3536 */
9393
def maybeBumpValIdx(tree: Tree): Unit = tree match
9494
case tuple: Tuple => for t <- tuple.trees do maybeBumpValIdx(t)

0 commit comments

Comments
 (0)