diff options
| author | Sam Estep <sam@samestep.com> | 2025-07-15 21:01:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 01:01:11 +0000 |
| commit | bcd53322fb7bc3d226cc03a47cc6b91a37850690 (patch) | |
| tree | 9f91ae12a967e969b8a420eb6014dbd2b170d779 /source/core/slang-string.h | |
| parent | b282d0d012be97cbde66656a5aea65d1f63426c0 (diff) | |
Note that `Slang::String` is owned/null-terminated (#7648)
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 6d84a0c95..1a45f747b 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -201,7 +201,7 @@ public: /// Trims any 'c' from the start or the end, and returns as a substring UnownedStringSlice trim(char c) const; - /// Trims any horizonatl whitespace from start and returns as a substring + /// Trims any horizontal whitespace from start and returns as a substring UnownedStringSlice trimStart() const; static constexpr bool kHasUniformHash = true; @@ -459,9 +459,8 @@ private: }; /*! -@brief Represents a UTF-8 encoded string. +@brief Represents an owned, zero-terminated UTF-8 encoded string. */ - class SLANG_RT_API String { friend struct StringSlice; |
