aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/069_comptime4.zig
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-04-16 12:23:10 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-04-18 18:16:19 +0200
commit6b17a188936d489e2777e541c84112b2609532d5 (patch)
tree99303fde89f0b921f44705433b7fc1a39d0b6fef /exercises/069_comptime4.zig
parentb59bef29b9c74270539e2f775d2f0394ec435f2d (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/069_comptime4.zig')
-rw-r--r--exercises/069_comptime4.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/069_comptime4.zig b/exercises/069_comptime4.zig
index 004a42c..f4c8bbb 100644
--- a/exercises/069_comptime4.zig
+++ b/exercises/069_comptime4.zig
@@ -16,7 +16,7 @@ const print = @import("std").debug.print;
pub fn main() void {
// Here we declare arrays of three different types and sizes
// at compile time from a function call. Neat!
- const s1 = makeSequence(u8, 3); // creates a [3]u8
+ const s1 = makeSequence(u8, 3); // creates a [3]u8
const s2 = makeSequence(u32, 5); // creates a [5]u32
const s3 = makeSequence(i64, 7); // creates a [7]i64