run zig fmt on some of the codebase

See #1003
This commit is contained in:
Andrew Kelley
2018-05-26 18:16:39 -04:00
parent 118d41ef83
commit b184ae5ca5
28 changed files with 920 additions and 852 deletions

View File

@@ -150,7 +150,10 @@ pub fn AlignedArrayList(comptime T: type, comptime A: u29) type {
};
pub fn iterator(self: &const Self) Iterator {
return Iterator { .list = self, .count = 0 };
return Iterator{
.list = self,
.count = 0,
};
}
};
}
@@ -207,7 +210,7 @@ test "iterator ArrayList test" {
try list.append(2);
try list.append(3);
var count : i32 = 0;
var count: i32 = 0;
var it = list.iterator();
while (it.next()) |next| {
assert(next == count + 1);
@@ -225,7 +228,7 @@ test "iterator ArrayList test" {
}
it.reset();
assert(?? it.next() == 1);
assert(??it.next() == 1);
}
test "insert ArrayList test" {