Augment a comment.
This commit is contained in:
parent
b2eed72a6f
commit
3e810c64d0
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue