@@ -205,7 +205,7 @@ struct Cache {
205205
206206 /// Mappings cache where we retain parsed dwarf information.
207207 ///
208- /// This list has a fixed capacity for its entire liftime which never
208+ /// This list has a fixed capacity for its entire lifetime which never
209209 /// increases. The `usize` element of each pair is an index into `libraries`
210210 /// above where `usize::max_value()` represents the current executable. The
211211 /// `Mapping` is corresponding parsed dwarf information.
@@ -232,7 +232,7 @@ struct LibrarySegment {
232232 /// actually where the segment is loaded, but rather this address plus the
233233 /// containing library's `bias` is where to find it.
234234 stated_virtual_memory_address : usize ,
235- /// The size of ths segment in memory.
235+ /// The size of this segment in memory.
236236 len : usize ,
237237}
238238
@@ -293,7 +293,7 @@ impl Cache {
293293 }
294294
295295 // Now that we know `lib` contains `addr`, we can offset with
296- // the bias to find the stated virutal memory address.
296+ // the bias to find the stated virtual memory address.
297297 let svma = ( addr as usize ) . wrapping_sub ( lib. bias ) ;
298298 Some ( ( i, svma as * const u8 ) )
299299 } )
@@ -337,7 +337,7 @@ pub unsafe fn resolve(what: ResolveWhat<'_>, cb: &mut dyn FnMut(&super::Symbol))
337337 let addr = what. address_or_ip ( ) ;
338338 let mut call = |sym : Symbol < ' _ > | {
339339 // Extend the lifetime of `sym` to `'static` since we are unfortunately
340- // required to here, but it's ony ever going out as a reference so no
340+ // required to here, but it's only ever going out as a reference so no
341341 // reference to it should be persisted beyond this frame anyway.
342342 let sym = mem:: transmute :: < Symbol < ' _ > , Symbol < ' static > > ( sym) ;
343343 ( cb) ( & super :: Symbol { inner : sym } ) ;
0 commit comments