Skip to content

Commit b2cf192

Browse files
authored
Merge pull request #15484 from Jentsch/spelling
Fix some spelling mistakes
2 parents 58d94d2 + 94d0d48 commit b2cf192

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,7 @@ object Types {
987987
(name, buf) => buf += member(name).asSingleDenotation)
988988
}
989989

990-
/** The set of implicit term members of this type
991-
* @param kind A subset of {Implicit, Given} that specifies what kind of implicit should
992-
* be returned
993-
*/
990+
/** The set of implicit term members of this type */
994991
final def implicitMembers(using Context): List[TermRef] = {
995992
record("implicitMembers")
996993
memberDenots(implicitFilter,

compiler/src/dotty/tools/dotc/typer/Applications.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ trait Applications extends Compatibility {
11711171
* type by means of a type ascription, as long as the widened type is
11721172
* still compatible with the expected type.
11731173
* The underlying type is the intersection of all class parents of the
1174-
* orginal type.
1174+
* original type.
11751175
*/
11761176
def widenEnumCase(tree: Tree, pt: Type)(using Context): Tree =
11771177
val sym = tree.symbol
@@ -1259,7 +1259,7 @@ trait Applications extends Compatibility {
12591259
* whereas overloaded variants need to have a conforming variant.
12601260
*/
12611261
def trySelectUnapply(qual: untpd.Tree)(fallBack: (Tree, TyperState) => Tree): Tree = {
1262-
// try first for non-overloaded, then for overloaded ocurrences
1262+
// try first for non-overloaded, then for overloaded occurrences
12631263
def tryWithName(name: TermName)(fallBack: (Tree, TyperState) => Tree)(using Context): Tree =
12641264

12651265
def tryWithProto(qual: untpd.Tree, targs: List[Tree], pt: Type)(using Context) =
@@ -2080,7 +2080,7 @@ trait Applications extends Compatibility {
20802080
mappedSym.rawParamss = alt.symbol.rawParamss
20812081
// we need rawParamss to find parameters with default arguments,
20822082
// but we do not need to be precise right now, since this is just a pre-test before
2083-
// we look up defult getters. If at some point we extract default arguments from the
2083+
// we look up default getters. If at some point we extract default arguments from the
20842084
// parameter symbols themselves, we have to find the right parameter by name, not position.
20852085
// That means it's OK to copy parameters wholesale rather than tailoring them to always
20862086
// correspond to the type transformation.
@@ -2203,7 +2203,7 @@ trait Applications extends Compatibility {
22032203
* This reset is needed because otherwise the original results might
22042204
* have added constraints to type parameters which are no longer
22052205
* implied after harmonization. No essential constraints are lost by this because
2206-
* the result of harmomization will be compared again with the expected type.
2206+
* the result of harmonization will be compared again with the expected type.
22072207
* Test cases where this matters are in pos/harmomize.scala.
22082208
*/
22092209
def harmonic[T](harmonize: List[T] => List[T], pt: Type)(op: => List[T])(using Context): List[T] =
@@ -2262,7 +2262,7 @@ trait Applications extends Compatibility {
22622262
* with the type parameters of the extension (T1, T2) inferred.
22632263
* None is returned if the implicit search fails for any of the leading implicit parameters
22642264
* or if the receiver has a wrong type (note that in general the type of the receiver
2265-
* might depend on the exact types of the found instances of the proceding implicits).
2265+
* might depend on the exact types of the found instances of the proceeding implicits).
22662266
* No implicit search is tried for implicits following the receiver or for parameters of the def (D, E).
22672267
*/
22682268
def tryApplyingExtensionMethod(methodRef: TermRef, receiver: Tree)(using Context): Option[Tree] =

0 commit comments

Comments
 (0)