From b871029ac8725c45977f94f6278d06148985dc88 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 19 Dec 2023 08:47:45 -0600 Subject: [PATCH] doc --- crates/libs/core/src/strings/hstring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/libs/core/src/strings/hstring.rs b/crates/libs/core/src/strings/hstring.rs index de522928b8..7f6d573239 100644 --- a/crates/libs/core/src/strings/hstring.rs +++ b/crates/libs/core/src/strings/hstring.rs @@ -19,7 +19,7 @@ impl HSTRING { self.0.is_none() } - /// Returns the length of the string. + /// Returns the length of the string. The length is measured in `u16`s, not including the terminating null character. pub fn len(&self) -> usize { if let Some(header) = self.get_header() { header.len as usize