Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf2019 committed Aug 4, 2024
1 parent 78da327 commit c92c642
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl<F: Copy, P, B: MappingBackend<F, P>> MemorySet<F, P, B> {
///
/// `update_flags` is a function that receives old flags and processes
/// new flags (e.g., some flags can not be changed through this interface).
/// It returns [None] if there is no bit to change.
/// It returns [`None`] if there is no bit to change.
///
/// Memory areas will be skipped according to `update_flags`. Memory areas
/// that are fully contained in the range or contains the range or intersects
Expand Down
3 changes: 1 addition & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,10 @@ fn test_protect() {
}
}

// Test skip [0x850, 0x900), [0x2850, 0x2900), [0x4850, 0x4900), ...
// Test skip [0x880, 0x900), [0x2880, 0x2900), [0x4880, 0x4900), ...
for start in (0..MAX_ADDR).step_by(0x2000) {
assert_ok!(set.protect((start + 0x880).into(), 0x80, update_flags(0x3), &mut pt));
}
dump_memory_set(&set);
assert_eq!(set.len(), 39);

// Unmap all areas.
Expand Down

0 comments on commit c92c642

Please sign in to comment.