Skip to content

Commit

Permalink
Clarify HSTRING::len documentation (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Dec 19, 2023
1 parent 02db74c commit 0a65f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libs/core/src/strings/hstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 (UTF-16 code units), not including the terminating null character.
pub fn len(&self) -> usize {
if let Some(header) = self.get_header() {
header.len as usize
Expand Down

0 comments on commit 0a65f6c

Please sign in to comment.