From fee47f49f1451a078236802f6292fb8fd70fb782 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 19 Dec 2024 13:24:08 +0100 Subject: Export documentation on PString::to_isize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/node.rs | 6 +++--- 1 file 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(' '); -- cgit v1.2.3