Skip to content

Commit 7d3f6d0

Browse files
committed
Fix documentation of ConstraintHandling#addConstraint
1 parent 73e13e8 commit 7d3f6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/ConstraintHandling.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ trait ConstraintHandling {
223223
final def canConstrain(param: PolyParam): Boolean =
224224
!frozenConstraint && (constraint contains param)
225225

226-
/** Add constraint `param <: bond` if `fromBelow` is true, `param >: bound` otherwise.
226+
/** Add constraint `param <: bound` if `fromBelow` is false, `param >: bound` otherwise.
227227
* `bound` is assumed to be in normalized form, as specified in `firstTry` and
228228
* `secondTry` of `TypeComparer`. In particular, it should not be an alias type,
229229
* lazy ref, typevar, wildcard type, error type. In addition, upper bounds may

0 commit comments

Comments
 (0)