File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ fn gpa_from_pfn_range(pfn_range: &PfnRange, page_idx: u64) -> Option<Gpa> {
38
38
Some ( Pfn :: new ( pfn_range. page_file_number ) . gpa_with_offset ( offset) )
39
39
}
40
40
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`].
43
43
trait PtrSize : Sized + Copy + Into < u64 > + From < u32 > {
44
44
fn checked_add ( self , rhs : Self ) -> Option < Self > ;
45
45
}
@@ -298,7 +298,7 @@ fn try_extract_user_modules(
298
298
299
299
/// Filter out [`AddrTranslationError`] errors and turn them into `None`. This
300
300
/// 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
302
302
/// error.
303
303
fn filter_addr_translation_err < T > ( res : Result < T > ) -> Result < Option < T > > {
304
304
match res {
You can’t perform that action at this time.
0 commit comments