From: Matt Corallo Date: Mon, 31 May 2021 23:38:00 +0000 (+0000) Subject: f X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e12827cbb2d7032b7456949f8c75ddf2a53b6e68;p=rust-lightning f --- diff --git a/lightning/src/util/ser_macros.rs b/lightning/src/util/ser_macros.rs index c3829a650..4b181c433 100644 --- a/lightning/src/util/ser_macros.rs +++ b/lightning/src/util/ser_macros.rs @@ -443,8 +443,9 @@ macro_rules! impl_writeable_tlv_based { /// variants stored directly. /// The format is, for example /// impl_writeable_tlv_based_enum!(EnumName, -/// (0, VariantName) => { (0, variant_field)}, {(1, variant_optional_field)}, {}; -/// (1, TupleVariant), (2, TupleVariantB), +/// (0, StructVariantA) => {(0, variant_field)}, {(1, variant_optional_field)}, {}, +/// (1, StructVariantB) => {(0, variant_field_a), (1, variant_field_b)}, {}, {(2, variant_vec_field)}; +/// (2, TupleVariantA), (3, TupleVariantB), /// ); /// The type is written as a single byte, followed by any variant data. /// Attempts to read an unknown type byte result in DecodeError::UnknownRequiredFeature.