From 82a1abe09b2038c0affa3ba9d02271a12e377270 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 10 Feb 2021 09:27:43 -0500 Subject: [PATCH 1/2] Improved 02 comment about imports being const --- exercises/02_std.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/02_std.zig b/exercises/02_std.zig index dcc1b87..50059e1 100644 --- a/exercises/02_std.zig +++ b/exercises/02_std.zig @@ -17,8 +17,8 @@ pub fn main() void { std.debug.print("Standard Library.\n", .{}); } -// Going deeper: imports must be declared as "constants" (with the 'const' -// keyword rather than "variables" (with the 'var' keyword) is that they -// can only be used at "compile time" rather than "run time". Zig evaluates -// const values at compile time. Don't worry if none of this makes sense -// yet! See also this answer: https://stackoverflow.com/a/62567550/695615 +// For the curious: Imports must be declared as constants because they +// can only be used at compile time rather than run time. Zig evaluates +// constant values at compile time. Don't worry, we'll cover imports +// in detail later. +// See also this answer: https://stackoverflow.com/a/62567550/695615 From e382b01976b02f3feab20ee54518a2551d2bfb92 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 10 Feb 2021 09:35:16 -0500 Subject: [PATCH 2/2] Ex 22 spelling error I never make mistakes with apostrophes'es', so I dont' know what happened here. --- exercises/22_errors2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/22_errors2.zig b/exercises/22_errors2.zig index fcfd391..0f8571f 100644 --- a/exercises/22_errors2.zig +++ b/exercises/22_errors2.zig @@ -7,7 +7,7 @@ // What happens if getText() can't find 'foo.txt'? How do we express // this in Zig? // -// Zig let's us make what's called an "error union" which is a value +// Zig lets us make what's called an "error union" which is a value // which could either be a regular value OR an error from a set: // // var text: MyErrorSet!Text = getText('foo.txt');