Skip to content

Commit ae5c6ec

Browse files
authored
Merge pull request #427 from Qix-/off-by-one-docs
Fix off-by-one in documentation
2 parents 9e0a8d1 + 0aa78ee commit ae5c6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structures/paging/page_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const ENTRY_COUNT: usize = 512;
185185
/// Always page-sized.
186186
///
187187
/// This struct implements the `Index` and `IndexMut` traits, so the entries can be accessed
188-
/// through index operations. For example, `page_table[15]` returns the 15th page table entry.
188+
/// through index operations. For example, `page_table[15]` returns the 16th page table entry.
189189
///
190190
/// Note that while this type implements [`Clone`], the users must be careful not to introduce
191191
/// mutable aliasing by using the cloned page tables.

0 commit comments

Comments
 (0)