Skip to content

Commit d1c83a5

Browse files
committed
f comment
1 parent 1ebe7b1 commit d1c83a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/util/ser_macros.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,8 +1868,7 @@ mod tests {
18681868
let mut encoded = ExpandedField { new_field: (43, 42) }.encode();
18691869
assert_eq!(encoded, <Vec<u8>>::from_hex("0700012b01022b2a").unwrap());
18701870

1871-
// On read, we'll read the `new_field` and have a value other than `(0, 0)`, causing us to
1872-
// ignore the old field value (in byte 3).
1871+
// On read, we'll read a `new_field` which means we won't bother looking at `old_field`.
18731872
encoded[3] = 10;
18741873
let read = <ExpandedField as Readable>::read(&mut &encoded[..]).unwrap();
18751874
assert_eq!(read, ExpandedField { new_field: (43, 42) });

0 commit comments

Comments
 (0)