Skip to content

Commit 16b5f4e

Browse files
committed
Fix typos
1 parent f07dc95 commit 16b5f4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ class CheckCaptures extends Recheck, SymTransformer:
935935
case _ =>
936936
}
937937
if !ctx.reporter.errorsReported then
938-
// We dont report errors hre if previous errors were reported, because other
938+
// We dont report errors here if previous errors were reported, because other
939939
// errors often result in bad applied types, but flagging these bad types gives
940940
// often worse error messages than the original errors.
941941
val checkApplied = new TreeTraverser:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
829829
&& (recur(tp1.widen.stripCapturing, parent2)
830830
|| tp1.isInstanceOf[SingletonType] && recur(tp1, parent2)
831831
// this alternative is needed in case the right hand side is a
832-
// capturing type that contains the lhs as an |-alternative.
832+
// capturing type that contains the lhs as an alternative of a union type.
833833
)
834834
catch case ex: AssertionError =>
835835
println(i"assertion failed while compare captured $tp1 <:< $tp2")

0 commit comments

Comments
 (0)