File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,8 @@ impl Readable for BigSize {
386
386
/// The lightning protocol uses u16s for lengths in most cases. As our serialization framework
387
387
/// primarily targets that, we must as well. However, because we may serialize objects that have
388
388
/// more than 65K entries, we need to be able to store larger values. Thus, we define a variable
389
- /// length integer here that is backwards-compatible but treats 0xffff as "read eight more bytes".
389
+ /// length integer here that is backwards-compatible for values < 0xffff. We treat 0xffff as
390
+ /// "read eight more bytes".
390
391
///
391
392
/// To ensure we only have one valid encoding per value, we add 0xffff to values written as eight
392
393
/// bytes. Thus, 0xfffe is serialized as 0xfffe, whereas 0xffff is serialized as
You can’t perform that action at this time.
0 commit comments