From dad90e393a36f9a169134bff5753313e0d64d02b Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 19 Dec 2023 10:37:11 -0600 Subject: [PATCH] utf --- 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 7f6d573239..8c21d4142a 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. The length is measured in `u16`s, not including the terminating null character. + /// Returns the length of the string. The length is measured in `u16`s (UTF-16 characters), not including the terminating null character. pub fn len(&self) -> usize { if let Some(header) = self.get_header() { header.len as usize