From 636d2e486f7770b9cf59aed1d66dfe75f45fa2a5 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 21 Apr 2022 23:19:06 -0700 Subject: implement step 6 --- src/string_mutable.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/string_mutable.zig') 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 "_"; -- cgit v1.2.3