Skip to content

Commit d3a2d61

Browse files
Merge pull request #7696 from bwignall/typo
Fix typos
2 parents bc4c565 + 6ad4a3d commit d3a2d61

File tree

28 files changed

+32
-32
lines changed

28 files changed

+32
-32
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
7676

7777
override def getCurrentCUnit(): CompilationUnit = { cunit }
7878

79-
/* ---------------- helper utils for generating classes and fiels ---------------- */
79+
/* ---------------- helper utils for generating classes and fields ---------------- */
8080

8181
def genPlainClass(cd: ClassDef) = cd match {
8282
case ClassDef(_, _, _, impl) =>

compiler/src/dotty/tools/backend/jvm/BCodeSyncAndTry.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ trait BCodeSyncAndTry extends BCodeBodyBuilder {
310310
* ------
311311
*/
312312

313-
// a note on terminology: this is not "postHandlers", despite appearences.
313+
// a note on terminology: this is not "postHandlers", despite appearances.
314314
// "postHandlers" as in the source-code view. And from that perspective, both (3.A) and (3.B) are invisible implementation artifacts.
315315
if (hasFinally) withFreshCleanupScope {
316316
nopIfNeeded(startTryBody)

compiler/src/dotty/tools/backend/jvm/BTypes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ abstract class BTypes {
362362
*
363363
* - Initializer block (JLS 8.6 / 8.7): block of statements in a java class
364364
* - static initializer: executed before constructor body
365-
* - instance initializer: exectued when class is initialized (instance creation, static
365+
* - instance initializer: executed when class is initialized (instance creation, static
366366
* field access, ...)
367367
*
368368
* - A static nested class can be defined as

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ object Flags {
133133
strs filter (_.nonEmpty)
134134
}
135135

136-
/** The list of non-empty names of flags that are set in teh given flag set */
136+
/** The list of non-empty names of flags that are set in the given flag set */
137137
def flagStrings(privateWithin: String): Seq[String] = {
138138
var rawStrings = (2 to MaxFlag).flatMap(x.flagString(_)) // DOTTY problem: cannot drop with (_)
139139
if (!privateWithin.isEmpty && !x.is(Protected))

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] w
137137
protected def approxState: ApproxState = approx
138138

139139
/** The original left-hand type of the comparison. Gets reset
140-
* everytime we compare components of the previous pair of types.
140+
* every time we compare components of the previous pair of types.
141141
* This type is used for capture conversion in `isSubArgs`.
142142
*/
143143
private [this] var leftRoot: Type = _

compiler/src/dotty/tools/dotc/core/classfile/ClassfileParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class ClassfileParser(
468468
classTParams = tparams
469469
val parents = new ListBuffer[Type]()
470470
while (index < end)
471-
parents += sig2type(tparams, skiptvs = false) // here the variance doesnt'matter
471+
parents += sig2type(tparams, skiptvs = false) // here the variance doesn't matter
472472
TempClassInfoType(parents.toList, instanceScope, owner)
473473
}
474474
if (ownTypeParams.isEmpty) tpe else TempPolyType(ownTypeParams, tpe)

compiler/src/dotty/tools/dotc/transform/Pickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Pickler extends Phase {
2424

2525
override def phaseName: String = Pickler.name
2626

27-
// No need to repickle trees comming from TASTY
27+
// No need to repickle trees coming from TASTY
2828
override def isRunnable(implicit ctx: Context): Boolean =
2929
super.isRunnable && !ctx.settings.fromTasty.value
3030

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class ReifyQuotes extends MacroTransform {
328328
}
329329
)
330330
}
331-
/* Lambdas are generated outside the quote that is beeing reified (i.e. in outer.owner).
331+
/* Lambdas are generated outside the quote that is being reified (i.e. in outer.owner).
332332
* In case the case that level == -1 the code is not in a quote, it is in an inline method,
333333
* hence we should take that as owner directly.
334334
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
12961296
else normalizedSplice.withSpan(span)
12971297
}
12981298

1299-
/** Return the set of symbols that are refered at level -1 by the tree and defined in the current run.
1299+
/** Return the set of symbols that are referred at level -1 by the tree and defined in the current run.
13001300
* This corresponds to the symbols that will need to be interpreted.
13011301
*/
13021302
private def macroDependencies(tree: Tree)(implicit ctx: Context) =

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ trait QuotesAndSplices {
270270
* will also transform it into a call to `scala.internal.quoted.Expr.unapply`.
271271
*
272272
* Code directly inside the quote is typed as an expression using Mode.QuotedPattern. Splices
273-
* within the quotes become patterns again and typed acordingly.
273+
* within the quotes become patterns again and typed accordingly.
274274
*
275275
* ```
276276
* case '{ ($ls: List[$t]) } =>

0 commit comments

Comments
 (0)