Skip to content

Commit

Permalink
Fix documentation surround DwarfResolver::find_line_info()
Browse files Browse the repository at this point in the history
Commit 304915f ("Make DwarfResolver work with AddrLineInfo
objects") adjusted the signature of the DwarfResolver::find_line_info()
method, but didn't adjust the comment talking about its return value. Do
so now.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o authored and danielocfb committed Sep 12, 2023
1 parent af0288d commit 15bf005
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dwarf/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ impl DwarfResolver {

/// Find line information of an address.
///
/// `addr` is an offset from the head of the loaded binary/or shared
/// object. This function returns a tuple of `(dir_name, file_name,
/// line_no)`.
/// `addr` is a normalized address.
pub fn find_line_info(&self, addr: Addr) -> Result<Option<AddrLineInfo<'_>>> {
// TODO: This conditional logic is weird and potentially
// unnecessary. Consider removing it or moving it higher
Expand Down

0 comments on commit 15bf005

Please sign in to comment.