From 0c18dd04ea864e936eac49ee9244bced768b07b1 Mon Sep 17 00:00:00 2001 From: FlyingCanoe Date: Sun, 1 Aug 2021 14:49:36 -0400 Subject: [PATCH] typo --- addr2line/src/lib.rs | 8 ++++---- src/symbol.rs | 16 ++++++++-------- src/symbol/relocate.rs | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/addr2line/src/lib.rs b/addr2line/src/lib.rs index faae2e4..de402fd 100644 --- a/addr2line/src/lib.rs +++ b/addr2line/src/lib.rs @@ -275,10 +275,10 @@ impl Context { None } - /// Find a address for each substatement in the `Location`. - /// This function return a hashmap where the key are the column number of the statement, - /// and where the value is a address of a instruction from that statement. - /// If the `Location` specify a column number, the hashmap will only contain one value. + /// Find an address for each substatement in the `Location`. + /// This function returns a hashmap where a key is a column number of each statement + /// and a value is an address of an instruction from that statement. + /// If the `Location` specifies a column number, the hashmap will only contain one value. pub fn find_addresses( &self, location: &Location, diff --git a/src/symbol.rs b/src/symbol.rs index ee47347..f4235ff 100644 --- a/src/symbol.rs +++ b/src/symbol.rs @@ -229,10 +229,10 @@ impl<'a> ParsedDwarf<'a> { }) } - /// Find a address for each substatement in the `Location`. - /// This function return a hashmap where the key are the column number of the statement, - /// and where the value is a address of a instruction from that statement. - /// If the `Location` specify a column number, the hashmap will only contain one value. + /// Find an address for each substatement in the `Location`. + /// This function returns a hashmap where a key is a column number of each statement + /// and a value is an address of an instruction from that statement. + /// If the `Location` specifies a column number, the hashmap will only contain one value. pub fn find_location_addr( &'a self, location: &addr2line::Location, @@ -335,10 +335,10 @@ impl Dwarf { self.rent(|parsed| f(addr, parsed.get_addr_frames(addr)?)) } - /// Find a address for each substatement in the `Location`. - /// This function return a hashmap where the key are the column number of the statement, - /// and where the value is a address of a instruction from that statement. - /// If the `Location` specify a column number, the hashmap will only contain one value. + /// Find an address for each substatement in the `Location`. + /// This function returns a hashmap where a key is a column number of each statement + /// and a value is an address of an instruction from that statement. + /// If the `Location` specifies a column number, the hashmap will only contain one value. pub fn find_location_addr( &self, location: &addr2line::Location, diff --git a/src/symbol/relocate.rs b/src/symbol/relocate.rs index 49e6ec1..45eca77 100644 --- a/src/symbol/relocate.rs +++ b/src/symbol/relocate.rs @@ -200,10 +200,10 @@ impl RelocatedDwarf { Ok(None) } - /// Find a address for each substatement in the `Location`. - /// This function return a hashmap where the key are the column number of the statement, - /// and where the value is a address of a instruction from that statement. - /// If the `Location` specify a column number, the hashmap will only contain one value. + /// Find an address for each substatement in the `Location`. + /// This function returns a hashmap where a key is a column number of each statement + /// and a value is an address of an instruction from that statement. + /// If the `Location` specifies a column number, the hashmap will only contain one value. pub fn find_location_addr( &self, location: &addr2line::Location,