From 709aba80fb31ba390c901974132c2d4eed88b6f5 Mon Sep 17 00:00:00 2001 From: Mike Samuel Date: Tue, 9 Feb 2021 18:08:28 -0500 Subject: [PATCH] Fix typo in comment --- compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index e02970d05607..be74446774df 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -2467,7 +2467,7 @@ class Typer extends Namer /** Translate infix operation expression `l op r` to * * l.op(r) if `op` is left-associative - * { val x = l; r.op(l) } if `op` is right-associative call-by-value and `l` is impure + * { val x = l; r.op(x) } if `op` is right-associative call-by-value and `l` is impure * r.op(l) if `op` is right-associative call-by-name or `l` is pure * * Translate infix type `l op r` to `op[l, r]`