From 76b8fcdb2801995e3c92c5477886b50cca30ab21 Mon Sep 17 00:00:00 2001 From: felixrabe Date: Fri, 30 May 2025 12:12:26 +0200 Subject: [PATCH 1/6] Add ')' --- exercises/050_no_value.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/050_no_value.zig b/exercises/050_no_value.zig index 8c73ed3..f5365cf 100644 --- a/exercises/050_no_value.zig +++ b/exercises/050_no_value.zig @@ -43,7 +43,7 @@ // // "void" is a _type_, not a value. It is the most popular of the // Zero Bit Types (those types which take up absolutely no space -// and have only a semantic value. When compiled to executable +// and have only a semantic value). When compiled to executable // code, zero bit types generate no code at all. The above example // shows a variable foo of type void which is assigned the value // of an empty expression. It's much more common to see void as From 14c81a6ceff247072fa719accdc6007c4f3d3001 Mon Sep 17 00:00:00 2001 From: felixrabe Date: Fri, 30 May 2025 21:53:24 +0200 Subject: [PATCH 2/6] 080: Fix @typeName results in comment --- exercises/080_anonymous_structs.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/080_anonymous_structs.zig b/exercises/080_anonymous_structs.zig index 55dedd4..4e3ce84 100644 --- a/exercises/080_anonymous_structs.zig +++ b/exercises/080_anonymous_structs.zig @@ -19,12 +19,12 @@ // const MyBar = Bar(); // store the struct type // const bar = Bar() {}; // create instance of the struct // -// * The value of @typeName(Bar()) is "Bar()". -// * The value of @typeName(MyBar) is "Bar()". -// * The value of @typeName(@TypeOf(bar)) is "Bar()". +// * The value of @typeName(Bar()) is ".Bar()". +// * The value of @typeName(MyBar) is ".Bar()". +// * The value of @typeName(@TypeOf(bar)) is ".Bar()". // // You can also have completely anonymous structs. The value -// of @typeName(struct {}) is "struct:". +// of @typeName(struct {}) is ".__struct_". // const print = @import("std").debug.print; From 69ad718446225aba634331c07f1cde8b24770cff Mon Sep 17 00:00:00 2001 From: felixrabe Date: Sat, 31 May 2025 23:15:28 +0200 Subject: [PATCH 3/6] 099: Make hex example match output --- exercises/099_formatting.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/099_formatting.zig b/exercises/099_formatting.zig index 37fab45..ef6b84e 100644 --- a/exercises/099_formatting.zig +++ b/exercises/099_formatting.zig @@ -60,7 +60,7 @@ // variety of formatting instructions. It's basically a tiny // language of its own. Here's a numeric example: // -// print("Catch-{x:0>4}.", .{twenty_two}); +// print("Catch-0x{x:0>4}.", .{twenty_two}); // // This formatting instruction outputs a hexadecimal number with // leading zeros: From 91f1c045bcd33e43f2723ed5b8a159c85f54acb0 Mon Sep 17 00:00:00 2001 From: felixrabe Date: Sun, 1 Jun 2025 01:05:22 +0200 Subject: [PATCH 4/6] 108: Make pretty --- exercises/108_labeled_switch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/108_labeled_switch.zig b/exercises/108_labeled_switch.zig index 9262c6f..fb61ac0 100644 --- a/exercises/108_labeled_switch.zig +++ b/exercises/108_labeled_switch.zig @@ -19,7 +19,7 @@ // } // break; // } -// std.debug.print("This statement cannot be reached\n", .{}); +// std.debug.print("This statement cannot be reached\n", .{}); // } // // By combining all we've learned so far, we can now proceed with a labeled switch From b1223f92edd6d488d491125dd6d415dc915707b4 Mon Sep 17 00:00:00 2001 From: felixrabe Date: Sun, 1 Jun 2025 01:08:07 +0200 Subject: [PATCH 5/6] 108: . --- exercises/108_labeled_switch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/108_labeled_switch.zig b/exercises/108_labeled_switch.zig index fb61ac0..897fcf5 100644 --- a/exercises/108_labeled_switch.zig +++ b/exercises/108_labeled_switch.zig @@ -22,7 +22,7 @@ // std.debug.print("This statement cannot be reached\n", .{}); // } // -// By combining all we've learned so far, we can now proceed with a labeled switch +// By combining all we've learned so far, we can now proceed with a labeled switch. // // A labeled switch is some extra syntactic sugar, which comes with all sorts of // candy (performance benefits). Don't believe me? Directly to source https://github.com/ziglang/zig/pull/21367 From e431cbb0cf01b89d565f5e1637782d8cef6d3151 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Thu, 12 Jun 2025 09:20:33 +0200 Subject: [PATCH 6/6] Stable release in README corrected. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6985390..63d8dbf 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ the appropriate tag. The Zig language is under very active development. In order to be current, Ziglings tracks **development** builds of the Zig compiler rather than versioned **release** builds. The last -stable release was `0.14.0`, but Ziglings needs a dev build with +stable release was `0.14.1`, but Ziglings needs a dev build with pre-release version "0.15.0" and a build number at least as high as that shown in the example version check above.