authorgravatar for hi@whatisaph.onewhatisaphone <hi@whatisaph.one> 2026-07-24 16:25:08-04:00
committergravatar for hi@whatisaph.onewhatisaphone <hi@whatisaph.one> 2026-07-31 16:19:58-04:00
log159e4397fccf89af919d351945edb09af6a73165
treea94ce450efa758c948a99a97b100d37c0e0e2931
parent8a4b5424d61a4ac8947cff1b9a8481578573db67

Remove redundant case


1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/zig.zig+1-2
......@@ -545,8 +545,7 @@ pub fn stringEscape(bytes: []const u8, w: *Writer) Writer.Error!void {
545545 '\t' => try w.writeAll("\\t"),
546546 '\\' => try w.writeAll("\\\\"),
547547 '"' => try w.writeAll("\\\""),
548 '\'' => try w.writeByte('\''),
549 ' ', '!', '#'...'&', '('...'[', ']'...'~' => try w.writeByte(byte),
548 ' ', '!', '#'...'[', ']'...'~' => try w.writeByte(byte),
550549 else => {
551550 try w.writeAll("\\x");
552551 try w.printInt(byte, 16, .lower, .{ .width = 2, .fill = '0' });