mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
Merge pull request #94 from DerTee/patch-1
fix 064_builtins: @addWithOverflow() explanation
This commit is contained in:
commit
708b6fc32e
1 changed files with 2 additions and 2 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue