Skip to content

Commit 1d8eb3c

Browse files
committed
f macros
1 parent 4a07207 commit 1d8eb3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/util/ser_macros.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ macro_rules! read_tlv_fields {
283283
} }
284284
}
285285

286-
// If we naively create a struct in impl_writeable_tlv_based blow, we may end up returning
286+
// If we naively create a struct in impl_writeable_tlv_based below, we may end up returning
287287
// `Self { ,,vecfield: vecfield }` which is obviously incorrect. Instead, we have to match here to
288288
// detect at least one empty field set and skip the potentially-extra comma.
289289
macro_rules! _init_tlv_based_struct {
@@ -338,6 +338,7 @@ macro_rules! _read_tlv_fields {
338338
/// First block includes all the required fields including a dummy value which is used during
339339
/// deserialization but which will never be exposed to other code.
340340
/// The second block includes optional fields.
341+
/// The third block includes any Vecs which need to have their individual elements serialized.
341342
macro_rules! impl_writeable_tlv_based {
342343
($st: ident, {$(($reqtype: expr, $reqfield: ident)),* $(,)*}, {$(($type: expr, $field: ident)),* $(,)*}, {$(($vectype: expr, $vecfield: ident)),* $(,)*}) => {
343344
impl ::util::ser::Writeable for $st {

0 commit comments

Comments
 (0)