Skip to content

Commit 30f3afd

Browse files
authored
Correct Cr2::read documentation (#161)
The documentation on Cr2::read refered to the Cr3 register
1 parent 453e66c commit 30f3afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registers/control.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ mod x86_64 {
210210
}
211211

212212
impl Cr2 {
213-
/// Read the current page fault linear address from the CR3 register.
213+
/// Read the current page fault linear address from the CR2 register.
214214
#[inline]
215215
pub fn read() -> VirtAddr {
216216
let value: u64;

0 commit comments

Comments
 (0)