Skip to content

Commit 3e810c6

Browse files
committed
Augment a comment.
1 parent b2eed72 commit 3e810c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_span/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,9 @@ impl<S: Encoder> Encodable<S> for SourceFile {
12701270
// the lines list is sorted and individual lines are
12711271
// probably not that long. Because of that we can store lines
12721272
// as a difference list, using as little space as possible
1273-
// for the differences.
1273+
// for the differences. But note that the first line is
1274+
// always encoded as a `BytePos` because its position is
1275+
// often much larger than any of the differences.
12741276
let max_line_length = if lines.len() == 1 {
12751277
0
12761278
} else {

0 commit comments

Comments
 (0)