Skip to content

Commit

Permalink
fix some doc syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
misson20000 committed Oct 2, 2024
1 parent 2509543 commit 12424d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/model/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl Address {
}
}

/// Parses a string of the form "[0x]1234[.5]" into an address. Addresses
/// Parses a string of the form "\[0x\]1234\[.5\]" into an address. Addresses
/// are always assumed to be in hexadecimal, regardless of whether the "0x"
/// prefix is included or not. A bit offset can optionally be specified. If
/// unspecified, it is assumed to be zero.
Expand Down Expand Up @@ -213,7 +213,7 @@ impl Size {
}


/// Parses a string of the form "[0x]1234[.5]" into a size. Unlike
/// Parses a string of the form "\[0x\]1234\[.5\]" into a size. Unlike
/// addresses, sizes are NOT always assumed to be in hexadecimal and will
/// parse as decimal if the "0x" prefix is not included. A bit offset can
/// optionally be specified. If unspecified, it is assumed to be zero.
Expand Down Expand Up @@ -311,7 +311,7 @@ impl Extent {
Extent { begin: base - self.begin.to_size(), end: base - self.end.to_size() }
}

/// Parses an extent of the form "<begin>:(<end>|+<size>)", such as
/// Parses an extent of the form "\<begin\>:(\<end\>|+\<size\>)", such as
/// "0x100:+0x10" or "0x100:110". If the plus sign is included, the part
/// after the colon is interpreted as a size instead of an end
/// address. Remember that addresses always parse as hex, but sizes only
Expand Down

0 comments on commit 12424d0

Please sign in to comment.