Selaa lähdekoodia

multiboot2-header: doc fix

Philipp Schuster 2 vuotta sitten
vanhempi
commit
23b3cff424
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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());