We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0196e04 commit 23b3cffCopy full SHA for 23b3cff
multiboot2-header/src/builder/traits.rs
@@ -23,7 +23,7 @@ pub(crate) trait StructAsBytes: Sized {
23
}
24
25
/// Returns the structure as a vector of its bytes.
26
- /// The length is determined by [`size`].
+ /// The length is determined by [`Self::byte_size`].
27
fn struct_as_bytes(&self) -> alloc::vec::Vec<u8> {
28
let ptr = self.as_ptr();
29
let mut vec = alloc::vec::Vec::with_capacity(self.byte_size());
0 commit comments