Skip to content

Commit e89bbb1

Browse files
authored
Merge pull request #318 from Freax13/fix-docs
fix docs for `page_table_index`
2 parents 6461745 + 31b3d1c commit e89bbb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/structures/paging/page.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,7 @@ impl<S: PageSize> Page<S> {
132132
}
133133

134134
const_fn! {
135-
/// Returns the level 3 page table index of this page.
136-
///
137-
/// ## Panics
138-
///
139-
/// Panics if level is not between 1 and 4
135+
/// Returns the table index of this page at the specified level.
140136
#[inline]
141137
pub fn page_table_index(self, level: PageTableLevel) -> PageTableIndex {
142138
self.start_address().page_table_index(level)

0 commit comments

Comments
 (0)