aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Clardy <will@quexxon.net>2021-02-15 16:55:19 -0500
committerWill Clardy <will@quexxon.net>2021-02-15 16:55:19 -0500
commite58f155bd6261a0c1408e8bb3b177bbced828eb3 (patch)
tree3e2029227daedbd4ad409cc78b1aaefe52683833
parent0d212ecf5a9de1c0bb673a2b6a409de5a99a9d7b (diff)
downloadziglings-e58f155bd6261a0c1408e8bb3b177bbced828eb3.tar.gz
ziglings-e58f155bd6261a0c1408e8bb3b177bbced828eb3.tar.bz2
ziglings-e58f155bd6261a0c1408e8bb3b177bbced828eb3.tar.xz
ziglings-e58f155bd6261a0c1408e8bb3b177bbced828eb3.zip
Manually apply `zig fmt` style to comments
-rw-r--r--exercises/09_if.zig2
-rw-r--r--exercises/11_while.zig2
-rw-r--r--exercises/13_while3.zig4
-rw-r--r--exercises/14_while4.zig4
-rw-r--r--exercises/18_functions.zig2
-rw-r--r--exercises/19_functions2.zig2
-rw-r--r--exercises/30_switch.zig2
7 files changed, 8 insertions, 10 deletions
diff --git a/exercises/09_if.zig b/exercises/09_if.zig
index a472e48..284563d 100644
--- a/exercises/09_if.zig
+++ b/exercises/09_if.zig
@@ -11,7 +11,7 @@
//
// a == b means "a equals b"
// a < b means "a is less than b"
-// a !=b means "a does not equal b"
+// a != b means "a does not equal b"
//
// The important thing about Zig's "if" is that it *only* accepts
// boolean values. It won't coerce numbers or other types of data
diff --git a/exercises/11_while.zig b/exercises/11_while.zig
index 4c4fc4f..9693593 100644
--- a/exercises/11_while.zig
+++ b/exercises/11_while.zig
@@ -13,7 +13,7 @@
// a == b means "a equals b"
// a < b means "a is less than b"
// a > b means "a is greater than b"
-// a !=b means "a does not equal b"
+// a != b means "a does not equal b"
//
const std = @import("std");
diff --git a/exercises/13_while3.zig b/exercises/13_while3.zig
index 3ff42ff..778dbba 100644
--- a/exercises/13_while3.zig
+++ b/exercises/13_while3.zig
@@ -5,9 +5,9 @@
//
// Example:
//
-// while (condition) : (continue expression){
+// while (condition) : (continue expression) {
//
-// if(other condition) continue;
+// if (other condition) continue;
//
// }
//
diff --git a/exercises/14_while4.zig b/exercises/14_while4.zig
index a28b9a9..c8dfc2e 100644
--- a/exercises/14_while4.zig
+++ b/exercises/14_while4.zig
@@ -1,9 +1,9 @@
//
// You can force a loop to exit immediately with a "break" statement:
//
-// while (condition) : (continue expression){
+// while (condition) : (continue expression) {
//
-// if(other condition) break;
+// if (other condition) break;
//
// }
//
diff --git a/exercises/18_functions.zig b/exercises/18_functions.zig
index bda90cd..2dbb8eb 100644
--- a/exercises/18_functions.zig
+++ b/exercises/18_functions.zig
@@ -3,7 +3,7 @@
// writing one of our own:
//
// fn foo(n: u8) u8 {
-// return n+1;
+// return n + 1;
// }
//
// The foo() function above takes a number "n" and returns a number that is
diff --git a/exercises/19_functions2.zig b/exercises/19_functions2.zig
index 99319c3..c323be8 100644
--- a/exercises/19_functions2.zig
+++ b/exercises/19_functions2.zig
@@ -3,7 +3,7 @@
// example that takes two parameters. As you can see, parameters
// are declared just like any other types ("name": "type"):
//
-// fn myFunction( number: u8, is_lucky: bool ) {
+// fn myFunction(number: u8, is_lucky: bool) {
// ...
// }
//
diff --git a/exercises/30_switch.zig b/exercises/30_switch.zig
index b10ad14..451060e 100644
--- a/exercises/30_switch.zig
+++ b/exercises/30_switch.zig
@@ -22,8 +22,6 @@
// return GameError.TooManyPlayers;
// }
//
-//
-//
const std = @import("std");
pub fn main() void {