Skip to content

Commit 8491d2d

Browse files
committed
Fix typos
1 parent 45156b2 commit 8491d2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
284284
* arguments Ts. That can make a difference for the variance in which an argument
285285
* is traversed. Example constraint:
286286
*
287-
* constrainded types: C[X], A
287+
* constrained types: C[X], A
288288
* A >: C[B]
289289
* C := Option
290290
*
@@ -696,14 +696,14 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
696696
case tvar: TypeVar =>
697697
if tvar.isInstantiated
698698
then
699-
// If the type variuable has been instantiated, we need to forget about
699+
// If the type variable has been instantiated, we need to forget about
700700
// the instantiation for old dependencies.
701701
// I.e. to find out what the old entry was, we should not follow
702702
// the newly instantiated type variable but assume the type variable's origin `param`.
703703
// An example where this happens is if `replace` is called from TypeVar's `instantiateWith`.
704704
oldDepEntry = mapReplacedTypeVarTo(param)(oldDepEntry)
705705
else
706-
// If the type variuable has not been instantiated, we need to replace references to it
706+
// If the type variable has not been instantiated, we need to replace references to it
707707
// in the new entry by `replacement`. Otherwise we would get stuck in an uninstantiated
708708
// type variable.
709709
// An example where this happens is if `replace` is called from unify.

0 commit comments

Comments
 (0)