aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-19 13:24:08 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-19 13:24:08 +0100
commitfee47f49f1451a078236802f6292fb8fd70fb782 (patch)
tree50a692d1c43a3cd8bf7c9df2ba112148fdf4cfff
parent69b878d11984b3cf2e1cccc33318bc64c9f62554 (diff)
downloadtools.nes-fee47f49f1451a078236802f6292fb8fd70fb782.tar.gz
tools.nes-fee47f49f1451a078236802f6292fb8fd70fb782.zip
Export documentation on PString::to_isize
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--lib/xixanta/src/node.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs
index bab9420..abc38a1 100644
--- a/lib/xixanta/src/node.rs
+++ b/lib/xixanta/src/node.rs
@@ -104,9 +104,9 @@ impl PString {
it.all(|current| init == current)
}
- // Returns the isize value that can be computed assuming that this is an
- // anonymous relative reference. References to a previous label will have a
- // negative value, while references to next labels have a positive one.
+ /// Returns the isize value that can be computed assuming that this is an
+ /// anonymous relative reference. References to a previous label will have a
+ /// negative value, while references to next labels have a positive one.
pub fn to_isize(&self) -> isize {
let c = self.value.chars().nth(1).unwrap_or(' ');