Skip to content

Commit 187b4e4

Browse files
nicolasstuckiKordyjan
authored andcommitted
Fix documentation
[Cherry-picked 21818e7]
1 parent db7a8b1 commit 187b4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,15 +1704,15 @@ class Definitions {
17041704
def isFunctionNType(tp: Type)(using Context): Boolean =
17051705
isNonRefinedFunction(tp.dropDependentRefinement)
17061706

1707-
/** Is `tp` a specialized, refined function type? Either an `ErasedFunction` or a `PolyFunction`. */
1707+
/** Does `tp` derive from `PolyFunction` or `ErasedFunction`? */
17081708
def isPolyOrErasedFunctionType(tp: Type)(using Context): Boolean =
17091709
isPolyFunctionType(tp) || isErasedFunctionType(tp)
17101710

1711-
/** Is `tp` a specialized, refined `PolyFunction` type? */
1711+
/** Does `tp` derive from `PolyFunction`? */
17121712
def isPolyFunctionType(tp: Type)(using Context): Boolean =
17131713
tp.derivesFrom(defn.PolyFunctionClass)
17141714

1715-
/** Is `tp` a specialized, refined `ErasedFunction` type? */
1715+
/** Does `tp` derive from `ErasedFunction`? */
17161716
def isErasedFunctionType(tp: Type)(using Context): Boolean =
17171717
tp.derivesFrom(defn.ErasedFunctionClass)
17181718

0 commit comments

Comments
 (0)