1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-04-30 06:35:05 +02:00

Merge pull request #94 from DerTee/patch-1

fix  064_builtins: @addWithOverflow() explanation
This commit is contained in:
Dave Gauer 2022-04-11 14:16:29 -04:00 committed by GitHub
commit 738cb67297
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."