Skip to content

Commit 7c57396

Browse files
committed
Fix silly typos.
1 parent 0126cce commit 7c57396

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ fn gpa_from_pfn_range(pfn_range: &PfnRange, page_idx: u64) -> Option<Gpa> {
3838
Some(Pfn::new(pfn_range.page_file_number).gpa_with_offset(offset))
3939
}
4040

41-
// This trait is was we use to be able to implement generic behavior for
42-
// 32/64-bit. We'll implement it for [`u32`] & [`u64`].
41+
/// This trait is used to implement generic behavior for both 32/64-bit.
42+
/// We'll implement it for both [`u32`] & [`u64`].
4343
trait PtrSize: Sized + Copy + Into<u64> + From<u32> {
4444
fn checked_add(self, rhs: Self) -> Option<Self>;
4545
}
@@ -298,7 +298,7 @@ fn try_extract_user_modules(
298298

299299
/// Filter out [`AddrTranslationError`] errors and turn them into `None`. This
300300
/// makes it easier for caller code to write logic that can recover from a
301-
/// memory read failure by bailing out for example, and not bubbling up anls
301+
/// memory read failure by bailing out for example, and not bubbling up an
302302
/// error.
303303
fn filter_addr_translation_err<T>(res: Result<T>) -> Result<Option<T>> {
304304
match res {

0 commit comments

Comments
 (0)