From 15bf0056826fa49e6bcec18d8cf85faddca88481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Mon, 11 Sep 2023 16:51:09 -0700 Subject: [PATCH] Fix documentation surround DwarfResolver::find_line_info() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 304915fd1cf2 ("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 --- src/dwarf/resolver.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dwarf/resolver.rs b/src/dwarf/resolver.rs index 69a6016f..b376f9d5 100644 --- a/src/dwarf/resolver.rs +++ b/src/dwarf/resolver.rs @@ -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>> { // TODO: This conditional logic is weird and potentially // unnecessary. Consider removing it or moving it higher