Skip to content

Commit a9976e9

Browse files
committed
Fix docs and typo
1 parent c7106ef commit a9976e9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PositionPickler(
3434

3535
def picklePositions(source: SourceFile, roots: List[Tree], warnings: mutable.ListBuffer[String]): Unit = {
3636
/** Pickle the number of lines followed by the length of each line */
37-
def pickleLineOffsetts(): Unit = {
37+
def pickleLineOffsets(): Unit = {
3838
val content = source.content()
3939
buf.writeInt(content.count(_ == '\n') + 1) // number of lines
4040
var lastIndex = content.indexOf('\n', 0)
@@ -45,7 +45,7 @@ class PositionPickler(
4545
buf.writeInt(end - lastIndex - 1) // size of the next line
4646
lastIndex = nextIndex
4747
}
48-
pickleLineOffsetts()
48+
pickleLineOffsets()
4949

5050
var lastIndex = 0
5151
var lastSpan = Span(0, 0)

tasty/src/dotty/tools/tasty/TastyFormat.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Note: Tree tags are grouped into 5 categories that determine what follows, and t
230230
231231
Standard-Section: "Positions" LinesSizes Assoc*
232232
233-
LinesSizes = Int Int* // Number of lines followed by the size of each line not counting the trailing `\n`
233+
LinesSizes = Nat Nat* // Number of lines followed by the size of each line not counting the trailing `\n`
234234
235235
Assoc = Header offset_Delta? offset_Delta? point_Delta?
236236
| SOURCE nameref_Int

0 commit comments

Comments
 (0)