diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-21 17:29:19 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-06-21 17:29:19 +0200 |
| commit | fe1c9fb9bd1ba88b2b37ffa62dd454bfbe521d4a (patch) | |
| tree | 586d05343f5c53a994f1535f60a875b4a24b9a33 /exercises/115_packed2.zig | |
| parent | 935d26828036da962f5c22738d86e8530a3819a2 (diff) | |
| parent | 151450cc7ddc188ec69d066bdc5f4a85c4210fbe (diff) | |
Merge branch 'main' into fix_typo
Diffstat (limited to 'exercises/115_packed2.zig')
| -rw-r--r-- | exercises/115_packed2.zig | 6 |
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, }, |
