diff options
author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-04-16 12:23:10 +0200 |
---|---|---|
committer | Manlio Perillo <manlio.perillo@gmail.com> | 2023-04-18 18:16:19 +0200 |
commit | 6b17a188936d489e2777e541c84112b2609532d5 (patch) | |
tree | 99303fde89f0b921f44705433b7fc1a39d0b6fef /exercises/059_integers.zig | |
parent | b59bef29b9c74270539e2f775d2f0394ec435f2d (diff) |
Ensure the exercises use the canonical format
Add the check-exercises.py tool in the new tools directory. It is used
to check that the exercises are correctly formatted, printing on stderr
the invalid ones and the diff in the unified format.
Update the exercises that don't use the canonical zig fmt format.
Update some patches that cause the generated zig file to be incorrectly
formatted.
Diffstat (limited to 'exercises/059_integers.zig')
-rw-r--r-- | exercises/059_integers.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exercises/059_integers.zig b/exercises/059_integers.zig index 5a6295d..a497efa 100644 --- a/exercises/059_integers.zig +++ b/exercises/059_integers.zig @@ -18,10 +18,10 @@ const print = @import("std").debug.print; pub fn main() void { - var zig = [_]u8 { - 0o131, // octal + var zig = [_]u8{ + 0o131, // octal 0b1101000, // binary - 0x66, // hex + 0x66, // hex }; print("{s} is cool.\n", .{zig}); |