diff options
author | Dave Gauer <ratfactor@gmail.com> | 2022-04-11 14:16:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 14:16:29 -0400 |
commit | 738cb67297e77011f44860dde43c8c90312e1649 (patch) | |
tree | 1bf7db2fb53030a1bc4580ecea9c820e737d05b1 | |
parent | 57aa916174cfe045db24d1250f01fffed41332d3 (diff) | |
parent | 4ad21b6678c2c84a4d4d592f772d52b498a9f0c7 (diff) | |
download | ziglings-738cb67297e77011f44860dde43c8c90312e1649.tar.gz ziglings-738cb67297e77011f44860dde43c8c90312e1649.tar.bz2 ziglings-738cb67297e77011f44860dde43c8c90312e1649.tar.xz ziglings-738cb67297e77011f44860dde43c8c90312e1649.zip |
Merge pull request #94 from DerTee/patch-1
fix 064_builtins: @addWithOverflow() explanation
-rw-r--r-- | exercises/064_builtins.zig | 4 |
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." |