Skip to content

Commit 21818e7

Browse files
committed
Fix documentation
1 parent 96af363 commit 21818e7

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
@@ -1713,15 +1713,15 @@ class Definitions {
17131713
def isFunctionNType(tp: Type)(using Context): Boolean =
17141714
isNonRefinedFunction(tp.dropDependentRefinement)
17151715

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

1720-
/** Is `tp` a specialized, refined `PolyFunction` type? */
1720+
/** Does `tp` derive from `PolyFunction`? */
17211721
def isPolyFunctionType(tp: Type)(using Context): Boolean =
17221722
tp.derivesFrom(defn.PolyFunctionClass)
17231723

1724-
/** Is `tp` a specialized, refined `ErasedFunction` type? */
1724+
/** Does `tp` derive from `ErasedFunction`? */
17251725
def isErasedFunctionType(tp: Type)(using Context): Boolean =
17261726
tp.derivesFrom(defn.ErasedFunctionClass)
17271727

0 commit comments

Comments
 (0)