Skip to content

Commit dd1523f

Browse files
committed
fix typo (#21324)
[Cherry-picked fd45847][modified]
1 parent 96b35b8 commit dd1523f

File tree

36 files changed

+39
-39
lines changed

36 files changed

+39
-39
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class ClassfileWriters(frontendAccess: PostProcessorFrontendAccess) {
125125
if (file.isInstanceOf[JarArchive]) {
126126
val jarCompressionLevel = compilerSettings.jarCompressionLevel
127127
// Writing to non-empty JAR might be an undefined behaviour, e.g. in case if other files where
128-
// created using `AbstractFile.bufferedOutputStream`instead of JarWritter
128+
// created using `AbstractFile.bufferedOutputStream`instead of JarWriter
129129
val jarFile = file.underlyingSource.getOrElse{
130130
throw new IllegalStateException("No underlying source for jar")
131131
}

compiler/src/dotty/tools/dotc/CompilationUnit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CompilationUnit protected (val source: SourceFile) {
7272
/** List of all comments present in this compilation unit */
7373
var comments: List[Comment] = Nil
7474

75-
/** Suspends the compilation unit by thowing a SuspendException
75+
/** Suspends the compilation unit by throwing a SuspendException
7676
* and recording the suspended compilation unit
7777
*/
7878
def suspend()(using Context): Nothing =

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Compiler {
111111
new LetOverApply, // Lift blocks from receivers of applications
112112
new ArrayConstructors) :: // Intercept creation of (non-generic) arrays and intrinsify.
113113
List(new Erasure) :: // Rewrite types to JVM model, erasing all type parameters, abstract types and refinements.
114-
List(new ElimErasedValueType, // Expand erased value types to their underlying implmementation types
114+
List(new ElimErasedValueType, // Expand erased value types to their underlying implementation types
115115
new PureStats, // Remove pure stats from blocks
116116
new VCElideAllocations, // Peep-hole optimization to eliminate unnecessary value class allocations
117117
new EtaReduce, // Reduce eta expansions of pure paths to the underlying function reference

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ object CheckCaptures:
4646
* @param owner the current owner
4747
* @param nestedInOwner true if the environment is a temporary one nested in the owner's environment,
4848
* and does not have a different actual owner symbol (this happens when doing box adaptation).
49-
* @param captured the caputure set containing all references to tracked free variables outside of boxes
49+
* @param captured the capture set containing all references to tracked free variables outside of boxes
5050
* @param isBoxed true if the environment is inside a box (in which case references are not counted)
5151
* @param outer0 the next enclosing environment
5252
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object Annotations {
4343
def argumentConstantString(i: Int)(using Context): Option[String] =
4444
for (case Constant(s: String) <- argumentConstant(i)) yield s
4545

46-
/** The tree evaluaton is in progress. */
46+
/** The tree evaluation is in progress. */
4747
def isEvaluating: Boolean = false
4848

4949
/** The tree evaluation has finished. */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ object Contexts {
264264
/** SourceFile with given path, memoized */
265265
def getSource(path: String): SourceFile = getSource(path.toTermName)
266266

267-
/** AbstraFile with given path name, memoized */
267+
/** AbstractFile with given path name, memoized */
268268
def getFile(name: TermName): AbstractFile = base.files.get(name) match
269269
case Some(file) =>
270270
file

compiler/src/dotty/tools/dotc/core/tasty/CommentPickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ object CommentPickler:
3232
def traverse(x: Any): Unit = x match
3333
case x: untpd.Tree @unchecked =>
3434
x match
35-
case x: tpd.MemberDef @unchecked => // at this point all MembderDefs are t(y)p(e)d.
35+
case x: tpd.MemberDef @unchecked => // at this point all MemberDefs are t(y)p(e)d.
3636
for comment <- docString(x) do pickleComment(addrOfTree(x), comment)
3737
case _ =>
3838
val limit = x.productArity

compiler/src/dotty/tools/dotc/parsing/Scanners.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ object Scanners {
683683
if !r.isOutermost
684684
&& closingRegionTokens.contains(token)
685685
&& !(token == CASE && r.prefix == MATCH)
686-
&& next.token == EMPTY // can be violated for ill-formed programs, e.g. neg/i12605.sala
686+
&& next.token == EMPTY // can be violated for ill-formed programs, e.g. neg/i12605.scala
687687
=>
688688
insert(OUTDENT, offset)
689689
case _ =>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import core.Contexts.*
99
* with a different context.
1010
*
1111
* A typical use case is a lazy val in a phase object which exists once per root context where
12-
* the expression intiializing the lazy val depends only on the root context, but not any changes afterwards.
12+
* the expression initializing the lazy val depends only on the root context, but not any changes afterwards.
1313
*/
1414
class CtxLazy[T](expr: Context ?=> T) {
1515
private var myValue: T = _

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import NameKinds.SuperAccessorName
1313

1414
object ElimErasedValueType {
1515
val name: String = "elimErasedValueType"
16-
val description: String = "expand erased value types to their underlying implmementation types"
16+
val description: String = "expand erased value types to their underlying implementation types"
1717

1818
def elimEVT(tp: Type)(using Context): Type = tp match {
1919
case ErasedValueType(_, underlying) =>

0 commit comments

Comments
 (0)