From df724098498118886b7a483aa41ee6ccf41ab489 Mon Sep 17 00:00:00 2001 From: tim bangma Date: Fri, 12 Feb 2021 23:41:33 -0500 Subject: [PATCH 1/4] Update 03_assignment.zig Looks like one of the example lines was missing. --- exercises/03_assignment.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exercises/03_assignment.zig b/exercises/03_assignment.zig index d26f2a2..1a27d39 100644 --- a/exercises/03_assignment.zig +++ b/exercises/03_assignment.zig @@ -20,6 +20,9 @@ // Example: foo can hold 8 bits (0 to 255) // bar can hold 16 bits (0 to 65,535) // +// const foo: u8 = 20; +// var bar: u16 = 2000; +// // You can do just about any combination of these that you can think of: // // u32 can hold 0 to 4,294,967,295 From cfcb1f3a448280559d6d172f77a5ef158d87c038 Mon Sep 17 00:00:00 2001 From: Ivan-Velickovic <10481259+Ivan-Velickovic@users.noreply.github.com> Date: Sun, 14 Feb 2021 15:42:42 +1300 Subject: [PATCH 2/4] 04_arrays.zig - missing : for type of example array --- exercises/04_arrays.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/04_arrays.zig b/exercises/04_arrays.zig index b8eeb9d..c1e9fd9 100644 --- a/exercises/04_arrays.zig +++ b/exercises/04_arrays.zig @@ -1,7 +1,7 @@ // // Let's learn some array basics. Arrays are declared with: // -// var foo [3]u32 = [3]u32{ 42, 108, 5423 }; +// var foo: [3]u32 = [3]u32{ 42, 108, 5423 }; // // When Zig can infer the size of the array, you can use '_' for the // size. You can also let Zig infer the type of the value so the From fa0abdc79f75e8ac5e98b8cab0605a998655f6e6 Mon Sep 17 00:00:00 2001 From: tim bangma Date: Sat, 13 Feb 2021 23:06:48 -0500 Subject: [PATCH 3/4] Update 03_assignment.zig --- exercises/03_assignment.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/03_assignment.zig b/exercises/03_assignment.zig index 1a27d39..662fd18 100644 --- a/exercises/03_assignment.zig +++ b/exercises/03_assignment.zig @@ -21,7 +21,7 @@ // bar can hold 16 bits (0 to 65,535) // // const foo: u8 = 20; -// var bar: u16 = 2000; +// const bar: u16 = 2000; // // You can do just about any combination of these that you can think of: // From 87cc23261a5ab932ae000af5ea93b2286f12c5d5 Mon Sep 17 00:00:00 2001 From: Will Clardy Date: Sun, 14 Feb 2021 09:22:41 -0500 Subject: [PATCH 4/4] Fix typo: out => our --- exercises/09_if.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/09_if.zig b/exercises/09_if.zig index 28ac712..a472e48 100644 --- a/exercises/09_if.zig +++ b/exercises/09_if.zig @@ -24,7 +24,7 @@ pub fn main() void { // Please fix this condition: if (foo) { - // We want out program to print this message! + // We want our program to print this message! std.debug.print("Foo is 1!\n", .{}); } else { std.debug.print("Foo is not 1!\n", .{});