ソースを参照

make safety docs a bullet list

Tom Dohrmann 3 年 前
コミット
d2f9d091ff
1 ファイル変更2 行追加2 行削除
  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.