From bc443a1113b68a668a6a024ed4b1e7eb2d7c0d80 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Thu, 11 Jun 2026 09:58:17 -0400 Subject: Fixed a couple of exercise references as they are no longer accurate after the recent changes - Exercise 107 claimed the async exercises are 84-91, they are actually 85-94 and quiz 95 - Exercise 113 claimed the bit manip exercise is 097, it is now 100 - Exercise 114 has the bit manipulation exercises as 097 and 098, they are now 100 and 101 - Exercise 114 has the last switch exercise as being 108, it is now 111. --- exercises/115_packed2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/115_packed2.zig') diff --git a/exercises/115_packed2.zig b/exercises/115_packed2.zig index 2b6b558..59d31e1 100644 --- a/exercises/115_packed2.zig +++ b/exercises/115_packed2.zig @@ -1,5 +1,5 @@ // -// We've already learned about switch statements in exercises 030, 031 and 108. +// We've already learned about switch statements in exercises 030, 031 and 111. // They also work with packed containers: const S = packed struct(u2) { -- cgit v1.2.3 From 2cf2a885fd564f6d7a8ca7c506b27288951bda9e Mon Sep 17 00:00:00 2001 From: Filip Kubiš Date: Sat, 20 Jun 2026 11:18:05 +0200 Subject: Use significand terminology As exercise 60 says: Donald Knuth would not be happy with us calling this mantissa. Proposing to use the less amiguous term significand --- exercises/115_packed2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/115_packed2.zig') diff --git a/exercises/115_packed2.zig b/exercises/115_packed2.zig index 2b6b558..bd25e20 100644 --- a/exercises/115_packed2.zig +++ b/exercises/115_packed2.zig @@ -55,7 +55,7 @@ comptime { const Float = packed union(u16) { value: f16, bits: packed struct(u16) { - mantissa: u10, + significand: u10, exponent: u5, sign: u1, }, -- cgit v1.2.3 From f3df08d8e05dc0543137ae9866b389df178b97c6 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Sun, 21 Jun 2026 15:43:28 +0200 Subject: fixed description --- exercises/115_packed2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exercises/115_packed2.zig') diff --git a/exercises/115_packed2.zig b/exercises/115_packed2.zig index db5190a..2a772d7 100644 --- a/exercises/115_packed2.zig +++ b/exercises/115_packed2.zig @@ -51,7 +51,7 @@ comptime { // // Try to make the float below negative: -/// IEEE 754 half precision float +// IEEE 754 binary16 floating-point format const Float = packed union(u16) { value: f16, bits: packed struct(u16) { -- cgit v1.2.3