Skip to content

Commit e9f02f2

Browse files
committed
f: expand LengthReadable comment
1 parent e81aca6 commit e9f02f2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lightning/src/util/ser.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,11 @@ where
361361
fn read<R: LengthRead>(reader: &mut R, params: P) -> Result<Self, DecodeError>;
362362
}
363363

364-
/// A trait that various higher-level LDK types implement allowing them to be read in
365-
/// from a [`Read`], requiring the implementer to provide the total length of the read.
364+
/// A trait that various LDK types implement allowing them to be read in from a [`Read`], requiring
365+
/// the implementer to provide the total length of the read.
366+
///
367+
/// Any type that implements [`Readable`] also automatically has a [`LengthReadable`]
368+
/// implementation, but some types, most notably onion packets, only implement [`LengthReadable`].
366369
pub trait LengthReadable
367370
where
368371
Self: Sized,

0 commit comments

Comments
 (0)