Skip to content

Commit

Permalink
Correct Cr2::read documentation (#161)
Browse files Browse the repository at this point in the history
The documentation on Cr2::read refered to the Cr3 register
  • Loading branch information
leecannon authored Jun 19, 2020
1 parent 453e66c commit 30f3afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registers/control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ mod x86_64 {
}

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

0 comments on commit 30f3afd

Please sign in to comment.