From 18a7cdb387887ef1603d4dbddf420ea926fe11c2 Mon Sep 17 00:00:00 2001 From: Toothbrush Date: Mon, 14 Mar 2022 09:50:55 +0000 Subject: [PATCH] Correct typos in `src/binary/level_4_entries.rs` --- src/binary/level_4_entries.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/binary/level_4_entries.rs b/src/binary/level_4_entries.rs index b62f2872..f763442d 100644 --- a/src/binary/level_4_entries.rs +++ b/src/binary/level_4_entries.rs @@ -73,7 +73,7 @@ impl UsedLevel4Entries { used } - /// Mark all p4 entries in the range `[address..address+size)` as used. + /// Marks all p4 entries in the range `[address..address+size)` as used. /// /// `size` can be a `u64` or `usize`. fn mark_range_as_used(&mut self, address: u64, size: S) @@ -109,7 +109,7 @@ impl UsedLevel4Entries { } } - /// Returns a unused level 4 entry and marks it as used. If `CONFIG.aslr` is + /// Returns an unused level 4 entry and marks it as used. If `CONFIG.aslr` is /// enabled, this will return a random available entry. /// /// Since this method marks each returned index as used, it can be used multiple times @@ -142,7 +142,7 @@ impl UsedLevel4Entries { /// Returns a virtual address in an unused level 4 entry and marks it as used. /// - /// This functions call [`get_free_entry`] internally, so all of its docs applies here + /// This function calls [`get_free_entry`] internally, so all of its docs applies here /// too. pub fn get_free_address(&mut self, size: u64, alignment: u64) -> VirtAddr { assert!(alignment.is_power_of_two());