From bcd53322fb7bc3d226cc03a47cc6b91a37850690 Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Tue, 15 Jul 2025 21:01:11 -0400 Subject: Note that `Slang::String` is owned/null-terminated (#7648) --- source/core/slang-string.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/core') 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; -- cgit v1.2.3