Explorar el Código

make safety docs a bullet list

Tom Dohrmann hace 3 años
padre
commit
d2f9d091ff
Se han modificado 1 ficheros con 2 adiciones y 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.