aboutsummaryrefslogtreecommitdiff
path: root/src/string_mutable.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-21 23:19:06 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-21 23:19:06 -0700
commit636d2e486f7770b9cf59aed1d66dfe75f45fa2a5 (patch)
treeef0bbb8ccb01dff4fd4dceed4eb6c6a837e1e6ec /src/string_mutable.zig
parent83c83949abc894251d671ad59146f043a32d4085 (diff)
downloadbun-636d2e486f7770b9cf59aed1d66dfe75f45fa2a5.tar.gz
bun-636d2e486f7770b9cf59aed1d66dfe75f45fa2a5.tar.zst
bun-636d2e486f7770b9cf59aed1d66dfe75f45fa2a5.zip
implement step 6
Diffstat (limited to 'src/string_mutable.zig')
-rw-r--r--src/string_mutable.zig7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/string_mutable.zig b/src/string_mutable.zig
index 7ef05fbe7..3481f1d2c 100644
--- a/src/string_mutable.zig
+++ b/src/string_mutable.zig
@@ -62,10 +62,9 @@ pub const MutableString = struct {
return mutable;
}
- // Convert it to an ASCII identifier. Note: If you change this to a non-ASCII
- // identifier, you're going to potentially cause trouble with non-BMP code
- // points in target environments that don't support bracketed Unicode escapes.
-
+ /// Convert it to an ASCII identifier. Note: If you change this to a non-ASCII
+ /// identifier, you're going to potentially cause trouble with non-BMP code
+ /// points in target environments that don't support bracketed Unicode escapes.
pub fn ensureValidIdentifier(str: string, allocator: std.mem.Allocator) !string {
if (str.len == 0) {
return "_";