Explorar o código

multiboot2-header: doc fix

Philipp Schuster %!s(int64=2) %!d(string=hai) anos
pai
achega
23b3cff424
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      multiboot2-header/src/builder/traits.rs

+ 1 - 1
multiboot2-header/src/builder/traits.rs

@@ -23,7 +23,7 @@ pub(crate) trait StructAsBytes: Sized {
     }
 
     /// Returns the structure as a vector of its bytes.
-    /// The length is determined by [`size`].
+    /// The length is determined by [`Self::byte_size`].
     fn struct_as_bytes(&self) -> alloc::vec::Vec<u8> {
         let ptr = self.as_ptr();
         let mut vec = alloc::vec::Vec::with_capacity(self.byte_size());