Skip to content

Commit

Permalink
fix details
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <[email protected]>
  • Loading branch information
martinvuyk committed Dec 11, 2024
1 parent 0ad7d33 commit 7b25dc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/src/utils/string_slice.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -1104,15 +1104,18 @@ trait Stringlike(CollectionElement, CollectionElementNew):

fn byte_length(self) -> Int:
"""Get the string length in bytes.
Returns:
The length of this string in bytes.
Notes:
This does not include the trailing null terminator in the count.
"""
...

fn unsafe_ptr(self) -> UnsafePointer[Byte]:
"""Get raw pointer to the underlying data.
Returns:
The raw pointer to the data.
"""
Expand Down

0 comments on commit 7b25dc6

Please sign in to comment.