diff options
author | 2022-04-21 23:19:06 -0700 | |
---|---|---|
committer | 2022-04-21 23:19:06 -0700 | |
commit | 636d2e486f7770b9cf59aed1d66dfe75f45fa2a5 (patch) | |
tree | ef0bbb8ccb01dff4fd4dceed4eb6c6a837e1e6ec /src/string_mutable.zig | |
parent | 83c83949abc894251d671ad59146f043a32d4085 (diff) | |
download | bun-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.zig | 7 |
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 "_"; |