Explorar o código

make safety docs a bullet list

Tom Dohrmann %!s(int64=4) %!d(string=hai) anos
pai
achega
d2f9d091ff
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      rsdp/src/handler.rs

+ 2 - 2
rsdp/src/handler.rs

@@ -92,8 +92,8 @@ pub trait AcpiHandler: Clone {
     ///
     /// ## Safety
     ///
-    /// `physical_address` must point to a valid `T` in physical memory.
-    /// `size` must be at least `size_of::<T>()`.
+    /// - `physical_address` must point to a valid `T` in physical memory.
+    /// - `size` must be at least `size_of::<T>()`.
     unsafe fn map_physical_region<T>(&self, physical_address: usize, size: usize) -> PhysicalMapping<Self, T>;
 
     /// Unmap the given physical mapping. This is called when a `PhysicalMapping` is dropped.