Skip to content

Commit ac46d04

Browse files
authoredApr 10, 2022
Correct typos in src/binary/level_4_entries.rs (#228)
1 parent e030cf5 commit ac46d04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/binary/level_4_entries.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl UsedLevel4Entries {
9595
used
9696
}
9797

98-
/// Mark all p4 entries in the range `[address..address+size)` as used.
98+
/// Marks all p4 entries in the range `[address..address+size)` as used.
9999
///
100100
/// `size` can be a `u64` or `usize`.
101101
fn mark_range_as_used<S>(&mut self, address: u64, size: S)
@@ -131,7 +131,7 @@ impl UsedLevel4Entries {
131131
}
132132
}
133133

134-
/// Returns a unused level 4 entry and marks it as used. If `CONFIG.aslr` is
134+
/// Returns an unused level 4 entry and marks it as used. If `CONFIG.aslr` is
135135
/// enabled, this will return a random available entry.
136136
///
137137
/// Since this method marks each returned index as used, it can be used multiple times
@@ -164,7 +164,7 @@ impl UsedLevel4Entries {
164164

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

0 commit comments

Comments
 (0)
Please sign in to comment.