Skip to content

Commit dd2962b

Browse files
authored
Merge pull request #13322 from dwijnand/fix-initizlized-typo
Fix a typo in initizlized
2 parents 4af4ffe + 75e4bb6 commit dd2962b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ class TreeUnpickler(reader: TastyReader,
14111411
if (path.nonEmpty) {
14121412
val sourceFile = ctx.getSource(path)
14131413
posUnpicklerOpt match
1414-
case Some(posUnpickler) if !sourceFile.initizlized =>
1414+
case Some(posUnpickler) if !sourceFile.initialized =>
14151415
sourceFile.setLineIndicesFromLineSizes(posUnpickler.lineSizes)
14161416
case _ =>
14171417
pickling.println(i"source change at $addr: $path")

compiler/src/dotty/tools/dotc/util/SourceFile.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class SourceFile(val file: AbstractFile, computeContent: => Array[Char]) extends
145145
lineIndicesCache = calculateLineIndicesFromContents()
146146
lineIndicesCache
147147

148-
def initizlized = lineIndicesCache != null
148+
def initialized = lineIndicesCache != null
149149

150150
def setLineIndicesFromLineSizes(sizes: Array[Int]): Unit =
151151
val lines = sizes.length

0 commit comments

Comments
 (0)