From 57186aa56d1b1006377790357ba112b28149faff Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 16 Aug 2021 23:56:10 -0700 Subject: feat: Add more comparison operator coverage in 009_if.zig --- exercises/009_if.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'exercises') 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" // -- cgit v1.2.3-ZIG From a900877e402df5514c5b0550fc0c0793a0a22b0a 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: fix: Change order to match 011_while.zig --- exercises/009_if.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises') 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 -- cgit v1.2.3-ZIG From 2abb37e3a893c60867f79877df1dce0ceed9c3c2 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Aug 2021 00:28:40 -0700 Subject: feat: More descriptive definition --- exercises/015_for.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exercises') 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| { // -- cgit v1.2.3-ZIG From 4bf560060add11c95feb333c55076342302f4f90 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Aug 2021 09:55:20 -0700 Subject: fix: Grammar in 018_functions.zig --- exercises/018_functions.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises') 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 { -- cgit v1.2.3-ZIG