From 12424d03f6653230668962c357dcf488fc4168eb Mon Sep 17 00:00:00 2001 From: misson20000 Date: Tue, 1 Oct 2024 20:03:17 -0400 Subject: [PATCH] fix some doc syntax errors --- src/model/addr.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model/addr.rs b/src/model/addr.rs index c0f21e8..87a84f4 100644 --- a/src/model/addr.rs +++ b/src/model/addr.rs @@ -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. @@ -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. @@ -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 ":(|+)", such as + /// Parses an extent of the form "\:(\|+\)", 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