diff options
author | Jonathan Halmen <jonathan@halmen.org> | 2021-11-05 16:44:29 +0100 |
---|---|---|
committer | Jonathan Halmen <jonathan@halmen.org> | 2021-11-05 17:46:56 +0100 |
commit | 88886a37d9721763326ff80a7b2c127e4a8cb8ae (patch) | |
tree | 3e6ea609c66930457907903329cdd947edafbb78 /exercises/064_builtins.zig | |
parent | 4147a9a39b362468cc6f16c8ce751ee3481321f4 (diff) | |
download | ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.tar.gz ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.tar.bz2 ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.tar.xz ziglings-88886a37d9721763326ff80a7b2c127e4a8cb8ae.zip |
fix whitespace line-endings
Diffstat (limited to 'exercises/064_builtins.zig')
-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 735ff9d..cd0d717 100644 --- a/exercises/064_builtins.zig +++ b/exercises/064_builtins.zig @@ -1,7 +1,7 @@ // // The Zig compiler provides "builtin" functions. You've already // gotten used to seeing an @import() at the top of every -// Ziglings exercise. +// Ziglings exercise. // // We've also seen @intCast() in "016_for2.zig", "058_quiz7.zig"; // and @enumToInt() in "036_enums2.zig". @@ -51,7 +51,7 @@ pub fn main() void { // 1111 + 1 = 0000 Yes! (Real answer is 10000) // 0000 + 1 = 0001 Yes! // 0001 + 1 = 0010 Yes! - // + // // Also, check out our fancy formatting! b:0>4 means, "print // as a binary number, zero-pad right-aligned four digits." print("{b:0>4} + {b:0>4} = {b:0>4} ({})", .{a, b, my_result, overflowed}); |