summaryrefslogtreecommitdiff
path: root/exercises/115_packed2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/115_packed2.zig')
-rw-r--r--exercises/115_packed2.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/115_packed2.zig b/exercises/115_packed2.zig
index 2b6b558..2a772d7 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) {
@@ -51,11 +51,11 @@ 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) {
- mantissa: u10,
+ significand: u10,
exponent: u5,
sign: u1,
},