|
7 | 7 | // You may not use this file except in accordance with one or both of these
|
8 | 8 | // licenses.
|
9 | 9 |
|
10 |
| -//! Some macros that implement Readable/Writeable traits for lightning messages. |
| 10 | +//! Some macros that implement [`Readable`]/[`Writeable`] traits for lightning messages. |
11 | 11 | //! They also handle serialization and deserialization of TLVs.
|
| 12 | +//! |
| 13 | +//! [`Readable`]: crate::util::ser::Readable |
| 14 | +//! [`Writeable`]: crate::util::ser::Writeable |
12 | 15 |
|
13 | 16 | /// Implements serialization for a single TLV record.
|
14 | 17 | /// This is exported for use by other exported macros, do not use directly.
|
@@ -406,7 +409,7 @@ macro_rules! _decode_tlv_stream_range {
|
406 | 409 | },
|
407 | 410 | _ => {},
|
408 | 411 | }
|
409 |
| - // As we read types, make sure we hit every required type between last_seen_type and typ: |
| 412 | + // As we read types, make sure we hit every required type between `last_seen_type` and `typ`: |
410 | 413 | $({
|
411 | 414 | $crate::_check_decoded_tlv_order!(last_seen_type, typ, $type, $field, $fieldty);
|
412 | 415 | })*
|
@@ -504,7 +507,7 @@ macro_rules! impl_writeable {
|
504 | 507 | /// serialized object. Previous versions will simply err with a
|
505 | 508 | /// [`DecodeError::UnknownVersion`].
|
506 | 509 | ///
|
507 |
| -/// Updates to either $this_version or $min_version_that_can_read_this should be included in |
| 510 | +/// Updates to either `$this_version` or `$min_version_that_can_read_this` should be included in |
508 | 511 | /// release notes.
|
509 | 512 | ///
|
510 | 513 | /// Both version fields can be specific to this type of object.
|
@@ -536,7 +539,7 @@ macro_rules! write_tlv_fields {
|
536 | 539 |
|
537 | 540 | /// Reads a prefix added by [`write_ver_prefix`], above. Takes the current version of the
|
538 | 541 | /// serialization logic for this object. This is compared against the
|
539 |
| -/// $min_version_that_can_read_this added by [`write_ver_prefix`]. |
| 542 | +/// `$min_version_that_can_read_this` added by [`write_ver_prefix`]. |
540 | 543 | macro_rules! read_ver_prefix {
|
541 | 544 | ($stream: expr, $this_version: expr) => { {
|
542 | 545 | let ver: u8 = Readable::read($stream)?;
|
|
0 commit comments