Browse Source

make safety docs a bullet list

Tom Dohrmann 3 years ago
parent
commit
d2f9d091ff
1 changed files with 2 additions and 2 deletions
  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.