summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Estep <sam@samestep.com>2025-07-15 21:01:11 -0400
committerGitHub <noreply@github.com>2025-07-16 01:01:11 +0000
commitbcd53322fb7bc3d226cc03a47cc6b91a37850690 (patch)
tree9f91ae12a967e969b8a420eb6014dbd2b170d779
parentb282d0d012be97cbde66656a5aea65d1f63426c0 (diff)
Note that `Slang::String` is owned/null-terminated (#7648)
-rw-r--r--source/core/slang-string.h5
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;