From b89eb8bf0470538cdefd1838ff75a0f797efc378 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 d3d349969273e7d1faae7557bbfc75f56322c203 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 cf3a7fa3988f6b08a59db41095fb62dbbe5870fd 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 d316d8c6f0b2a876d24b1a8b43112b552605b9a4 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", .{});