From 162f84133d911faab41192d8d1d1c5ec9a1ed882 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 16 Aug 2021 23:56:10 -0700 Subject: [PATCH 1/4] feat: Add more comparison operator coverage in 009_if.zig --- exercises/009_if.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/009_if.zig b/exercises/009_if.zig index 284563d..274a012 100644 --- a/exercises/009_if.zig +++ b/exercises/009_if.zig @@ -10,6 +10,7 @@ // Zig has the "usual" comparison operators such as: // // a == b means "a equals b" +// a > b means "a is greater than b" // a < b means "a is less than b" // a != b means "a does not equal b" // From 37f8b445a25d23599c6d7dff2d1f7f8ab9135a03 Mon Sep 17 00:00:00 2001 From: Palm <87849942+Palm404@users.noreply.github.com> Date: Tue, 17 Aug 2021 00:01:55 -0700 Subject: [PATCH 2/4] fix: Change order to match 011_while.zig --- exercises/009_if.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/009_if.zig b/exercises/009_if.zig index 274a012..4536fc3 100644 --- a/exercises/009_if.zig +++ b/exercises/009_if.zig @@ -10,8 +10,8 @@ // Zig has the "usual" comparison operators such as: // // a == b means "a equals b" -// a > b means "a is greater than b" // a < b means "a is less than b" +// a > b means "a is greater than b" // a != b means "a does not equal b" // // The important thing about Zig's "if" is that it *only* accepts From 01c9f2a79f3111190df9f0368521aecb333d9f7e Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Aug 2021 00:28:40 -0700 Subject: [PATCH 3/4] feat: More descriptive definition --- exercises/015_for.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/015_for.zig b/exercises/015_for.zig index 2ce930e..4c87a05 100644 --- a/exercises/015_for.zig +++ b/exercises/015_for.zig @@ -1,6 +1,6 @@ // -// Behold the 'for' loop! It lets you execute code for each -// member of an array: +// Behold the 'for' loop! For loops let you execute code for each +// element of an array: // // for (items) |item| { // From 2e782fbd8694d82b6875ceca0d3e51fa5ba10199 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Aug 2021 09:55:20 -0700 Subject: [PATCH 4/4] fix: Grammar in 018_functions.zig --- exercises/018_functions.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/018_functions.zig b/exercises/018_functions.zig index 51be2cd..e79b765 100644 --- a/exercises/018_functions.zig +++ b/exercises/018_functions.zig @@ -1,5 +1,5 @@ // -// Functions! We've already seen a lot of one called "main()". Now let's try +// Functions! We've already seen lots of ones called "main()". Now let's try // writing one of our own: // // fn foo(n: u8) u8 {