aboutsummaryrefslogtreecommitdiff
path: root/std/array_list.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/array_list.zig')
-rw-r--r--std/array_list.zig9
1 files changed, 6 insertions, 3 deletions
diff --git a/std/array_list.zig b/std/array_list.zig
index d1165c626d..679f7d73b8 100644
--- a/std/array_list.zig
+++ b/std/array_list.zig
@@ -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" {