Remove extraneous newlines in exercises 26 and 44

This commit is contained in:
Winter 2022-06-24 17:03:48 -04:00
parent 6955f2c067
commit c3765ca8fe
2 changed files with 0 additions and 2 deletions

View file

@ -10,7 +10,6 @@ const std = @import("std");
// that Zig will infer the error type. This is appropriate in the case // that Zig will infer the error type. This is appropriate in the case
// of main(), but can have consequences elsewhere. // of main(), but can have consequences elsewhere.
pub fn main() !void { pub fn main() !void {
// We get a Writer for Standard Out so we can print() to it. // We get a Writer for Standard Out so we can print() to it.
const stdout = std.io.getStdOut().writer(); const stdout = std.io.getStdOut().writer();

View file

@ -62,7 +62,6 @@ pub fn main() void {
// Note how this function's "c" parameter is a pointer to a Character struct. // Note how this function's "c" parameter is a pointer to a Character struct.
fn printCharacter(c: *Character) void { fn printCharacter(c: *Character) void {
// Here's something you haven't seen before: when switching an enum, you // 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" // don't have to write the full enum name. Zig understands that ".wizard"
// means "Class.wizard" when we switch on a Class enum value: // means "Class.wizard" when we switch on a Class enum value: