Skip to content

Commit f1bf6de

Browse files
committed
Merge branch 'main' into next
2 parents 393c308 + ac46d04 commit f1bf6de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/level_4_entries.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl UsedLevel4Entries {
9898
used
9999
}
100100

101-
/// Mark all p4 entries in the range `[address..address+size)` as used.
101+
/// Marks all p4 entries in the range `[address..address+size)` as used.
102102
///
103103
/// `size` can be a `u64` or `usize`.
104104
fn mark_range_as_used<S>(&mut self, address: u64, size: S)
@@ -134,7 +134,7 @@ impl UsedLevel4Entries {
134134
}
135135
}
136136

137-
/// Returns a unused level 4 entry and marks it as used. If `CONFIG.aslr` is
137+
/// Returns an unused level 4 entry and marks it as used. If `CONFIG.aslr` is
138138
/// enabled, this will return a random available entry.
139139
///
140140
/// Since this method marks each returned index as used, it can be used multiple times
@@ -167,7 +167,7 @@ impl UsedLevel4Entries {
167167

168168
/// Returns a virtual address in an unused level 4 entry and marks it as used.
169169
///
170-
/// This functions call [`get_free_entry`] internally, so all of its docs applies here
170+
/// This function calls [`get_free_entry`] internally, so all of its docs applies here
171171
/// too.
172172
pub fn get_free_address(&mut self, size: u64, alignment: u64) -> VirtAddr {
173173
assert!(alignment.is_power_of_two());

0 commit comments

Comments
 (0)