Skip to content

Commit 06e87c9

Browse files
committed
f clarify wording
1 parent 1d00df7 commit 06e87c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/util/ser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ impl Readable for BigSize {
389389
/// length integer here which is backwards-compatible but treats 0xffff as "read eight more bytes".
390390
///
391391
/// To ensure we only have one valid encoding per value, we add 0xffff to values written as eight
392-
/// bytes, representing 0xffff as zero-eight-bytes, which 0xfffe is 0xfffe-two-bytes.
392+
/// bytes. Thus, 0xfffe is serialized as 0xfffe, whereas 0xffff is serialized as
393+
/// 0xffff0000000000000000 (i.e. read-eight-bytes then zero).
393394
struct U16OrU64(pub u64);
394395
impl Writeable for U16OrU64 {
395396
#[inline]

0 commit comments

Comments
 (0)