From 1a001b9eb7415962bf7b0b68d41d7edf5deb4a96 Mon Sep 17 00:00:00 2001 From: Matthew Robinson Date: Mon, 1 Jan 2024 01:41:31 +0800 Subject: [PATCH 1/2] Correct comment to match code in 076_sentinels --- exercises/076_sentinels.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/076_sentinels.zig b/exercises/076_sentinels.zig index 4b1afb1..881e600 100644 --- a/exercises/076_sentinels.zig +++ b/exercises/076_sentinels.zig @@ -74,8 +74,8 @@ pub fn main() void { fn printSequence(my_seq: anytype) void { const my_typeinfo = @typeInfo(@TypeOf(my_seq)); - // The TypeInfo contained in my_type is a union. We use a - // switch to handle printing the Array or Pointer fields, + // The TypeInfo contained in my_typeinfo is a union. We use + // a switch to handle printing the Array or Pointer fields, // depending on which type of my_seq was passed in: switch (my_typeinfo) { .Array => { From 1ed03cf0a1a15ef2e62c5063f575edac4a627405 Mon Sep 17 00:00:00 2001 From: Matthew Robinson Date: Mon, 1 Jan 2024 02:16:39 +0800 Subject: [PATCH 2/2] Fix formatting of comment --- exercises/076_sentinels.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/076_sentinels.zig b/exercises/076_sentinels.zig index 881e600..357bd95 100644 --- a/exercises/076_sentinels.zig +++ b/exercises/076_sentinels.zig @@ -74,7 +74,7 @@ pub fn main() void { fn printSequence(my_seq: anytype) void { const my_typeinfo = @typeInfo(@TypeOf(my_seq)); - // The TypeInfo contained in my_typeinfo is a union. We use + // The TypeInfo contained in my_typeinfo is a union. We use // a switch to handle printing the Array or Pointer fields, // depending on which type of my_seq was passed in: switch (my_typeinfo) {