From b5a471db3cd9c041c091cd81eff37d73847a391e Mon Sep 17 00:00:00 2001 From: Wooster Date: Mon, 24 Jul 2023 23:40:57 +0200 Subject: [PATCH] ErrorBundle: remove extra newline This is another minor change but still makes a visual difference and will reduce the amount you have to scroll in your terminal by a little bit. Reasoning: 1. The `for (0..src.data.reference_trace_len)` loop will run at least once due to the `src.data.reference_trace_len > 0` check above. 2. In all 3 branches of the `if` in that `for` it will print something. 3. The 3 strings of all of those prints already end in `\n`. Therefore, the extra `try stderr.writeByte('\n');` is unnecessary. --- lib/std/zig/ErrorBundle.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/std/zig/ErrorBundle.zig b/lib/std/zig/ErrorBundle.zig index 201c06d4d7..24d3045436 100644 --- a/lib/std/zig/ErrorBundle.zig +++ b/lib/std/zig/ErrorBundle.zig @@ -265,7 +265,6 @@ fn renderErrorMessageToWriter( ); } } - try stderr.writeByte('\n'); try ttyconf.setColor(stderr, .reset); } } else {