Skip to content

Commit 3d4264f

Browse files
committed
fix comment
1 parent 3a8f380 commit 3d4264f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/structures/paging/mapper/mapped_page_table.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ pub struct MappedPageTable<'a, P: PageTableFrameMapping> {
2020
}
2121

2222
impl<'a, P: PageTableFrameMapping> MappedPageTable<'a, P> {
23-
/// Creates a new `MappedPageTable` that uses the passed closure for converting virtual
23+
/// Creates a new `MappedPageTable` that uses the passed `PageTableFrameMapping` for converting virtual
2424
/// to physical addresses.
2525
///
2626
/// ## Safety
2727
///
2828
/// This function is unsafe because the caller must guarantee that the passed `page_table_frame_mapping`
29-
/// closure is correct. Also, the passed `level_4_table` must point to the level 4 page table
29+
/// `PageTableFrameMapping` is correct. Also, the passed `level_4_table` must point to the level 4 page table
3030
/// of a valid page table hierarchy. Otherwise this function might break memory safety, e.g.
3131
/// by writing to an illegal memory location.
3232
#[inline]

0 commit comments

Comments
 (0)