diff options
author | Will Clardy <will@quexxon.net> | 2021-02-15 16:55:44 -0500 |
---|---|---|
committer | Will Clardy <will@quexxon.net> | 2021-02-15 16:55:44 -0500 |
commit | 2f821bd5e83129445179ea7bd81260df74fff295 (patch) | |
tree | 4f88d7f715dcd0bc98d20f3b7f70d49f2bdcb408 /exercises/30_switch.zig | |
parent | e58f155bd6261a0c1408e8bb3b177bbced828eb3 (diff) | |
download | ziglings-2f821bd5e83129445179ea7bd81260df74fff295.tar.gz ziglings-2f821bd5e83129445179ea7bd81260df74fff295.tar.bz2 ziglings-2f821bd5e83129445179ea7bd81260df74fff295.tar.xz ziglings-2f821bd5e83129445179ea7bd81260df74fff295.zip |
Apply `zig fmt` to exercises
Diffstat (limited to 'exercises/30_switch.zig')
-rw-r--r-- | exercises/30_switch.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/exercises/30_switch.zig b/exercises/30_switch.zig index 451060e..cb983f5 100644 --- a/exercises/30_switch.zig +++ b/exercises/30_switch.zig @@ -21,7 +21,7 @@ // alert(); // return GameError.TooManyPlayers; // } -// +// const std = @import("std"); pub fn main() void { @@ -29,15 +29,15 @@ pub fn main() void { for (lang_chars) |c| { switch (c) { - 1 => std.debug.print("A", .{}), - 2 => std.debug.print("B", .{}), - 3 => std.debug.print("C", .{}), - 4 => std.debug.print("D", .{}), - 5 => std.debug.print("E", .{}), - 6 => std.debug.print("F", .{}), - 7 => std.debug.print("G", .{}), - 8 => std.debug.print("H", .{}), - 9 => std.debug.print("I", .{}), + 1 => std.debug.print("A", .{}), + 2 => std.debug.print("B", .{}), + 3 => std.debug.print("C", .{}), + 4 => std.debug.print("D", .{}), + 5 => std.debug.print("E", .{}), + 6 => std.debug.print("F", .{}), + 7 => std.debug.print("G", .{}), + 8 => std.debug.print("H", .{}), + 9 => std.debug.print("I", .{}), 10 => std.debug.print("J", .{}), // ... we don't need everything in between ... 25 => std.debug.print("Y", .{}), |