aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDave Gauer <ratfactor@gmail.com>2022-07-31 09:52:31 -0400
committerGitHub <noreply@github.com>2022-07-31 09:52:31 -0400
commit1d38586bb99bb7c17276494a502783698354061d (patch)
tree325622ca01881256ce131785a8ca07865cc0c484
parentcd36d45974e56ac4db77d2598cbe3db1a1112eb0 (diff)
parentc3765ca8fe41d4dcac6b302d14f0f3d99decbe5a (diff)
Merge pull request #107 from winterqt/remove-extraneous-newline
Remove extraneous newlines in exercises 26 and 44
-rw-r--r--exercises/026_hello2.zig1
-rw-r--r--exercises/043_pointers5.zig1
2 files changed, 0 insertions, 2 deletions
diff --git a/exercises/026_hello2.zig b/exercises/026_hello2.zig
index 237d27c..cb29193 100644
--- a/exercises/026_hello2.zig
+++ b/exercises/026_hello2.zig
@@ -10,7 +10,6 @@ const std = @import("std");
// that Zig will infer the error type. This is appropriate in the case
// of main(), but can have consequences elsewhere.
pub fn main() !void {
-
// We get a Writer for Standard Out so we can print() to it.
const stdout = std.io.getStdOut().writer();
diff --git a/exercises/043_pointers5.zig b/exercises/043_pointers5.zig
index ae80ecc..f3a9ca0 100644
--- a/exercises/043_pointers5.zig
+++ b/exercises/043_pointers5.zig
@@ -62,7 +62,6 @@ pub fn main() void {
// Note how this function's "c" parameter is a pointer to a Character struct.
fn printCharacter(c: *Character) void {
-
// Here's something you haven't seen before: when switching an enum, you
// don't have to write the full enum name. Zig understands that ".wizard"
// means "Class.wizard" when we switch on a Class enum value: