Augment a comment.

This commit is contained in:
Nicholas Nethercote 2022-05-25 14:47:28 +10:00
parent b2eed72a6f
commit 3e810c64d0

View File

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