Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingCanoe committed Aug 1, 2021
1 parent 081deea commit 0c18dd0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions addr2line/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ impl<R: gimli::Reader> Context<R> {
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,
Expand Down
16 changes: 8 additions & 8 deletions src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions src/symbol/relocate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0c18dd0

Please sign in to comment.