Skip to content

Commit 23b3cff

Browse files
committed
multiboot2-header: doc fix
1 parent 0196e04 commit 23b3cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multiboot2-header/src/builder/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub(crate) trait StructAsBytes: Sized {
2323
}
2424

2525
/// Returns the structure as a vector of its bytes.
26-
/// The length is determined by [`size`].
26+
/// The length is determined by [`Self::byte_size`].
2727
fn struct_as_bytes(&self) -> alloc::vec::Vec<u8> {
2828
let ptr = self.as_ptr();
2929
let mut vec = alloc::vec::Vec::with_capacity(self.byte_size());

0 commit comments

Comments
 (0)