aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/064_builtins.zig
diff options
context:
space:
mode:
authorDerTee <4346532+DerTee@users.noreply.github.com>2022-04-03 23:06:25 +0200
committerGitHub <noreply@github.com>2022-04-03 23:06:25 +0200
commitf67216f19fd8f140ec94c5c36712e967678f7577 (patch)
tree1bf7db2fb53030a1bc4580ecea9c820e737d05b1 /exercises/064_builtins.zig
parentf6d1b36be23f754838e9aefd52af1b7b37b5ddd5 (diff)
fix 064_builtins: @addWithOverflow() explanation
The last two examples do not overflow, because the result is small enough. This was probably just a typing error in the original explanation.
Diffstat (limited to 'exercises/064_builtins.zig')
-rw-r--r--exercises/064_builtins.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/064_builtins.zig b/exercises/064_builtins.zig
index e1af861..508f8ed 100644
--- a/exercises/064_builtins.zig
+++ b/exercises/064_builtins.zig
@@ -49,8 +49,8 @@ pub fn main() void {
// 1101 + 1 = 1110 No.
// 1110 + 1 = 1111 No.
// 1111 + 1 = 0000 Yes! (Real answer is 10000)
- // 0000 + 1 = 0001 Yes!
- // 0001 + 1 = 0010 Yes!
+ // 0000 + 1 = 0001 No.
+ // 0001 + 1 = 0010 No.
//
// Also, check out our fancy formatting! b:0>4 means, "print
// as a binary number, zero-pad right-aligned four digits."