fix(lint): correct reported typos
Zig Project Action / Lint, Spell-check and test zig project (push) Has been cancelled
Zig Project Action / Lint, Spell-check and test zig project (push) Has been cancelled
This commit is contained in:
+2
-2
@@ -222,7 +222,7 @@ pub fn ParallelIter(T: type) type {
|
||||
self.sink = try gpa.alloc(T, self.impl.len());
|
||||
|
||||
if (self.poolSize == 0) {
|
||||
return; // Assume threads are unavailable, complete syncronously
|
||||
return; // Assume threads are unavailable, complete synchronously
|
||||
} else {
|
||||
for (self.pool) |*thread| {
|
||||
thread.* = try std.Thread.spawn(.{}, threadHandle, .{&self});
|
||||
@@ -232,7 +232,7 @@ pub fn ParallelIter(T: type) type {
|
||||
|
||||
pub fn join(self: *Self) []T {
|
||||
if (self.pool.len == 0) {
|
||||
// Assume threads are unavailable, complete syncronously
|
||||
// Assume threads are unavailable, complete synchronously
|
||||
while (true) {
|
||||
self.handle() orelse break;
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ pub fn SumTree(comptime T: type) type {
|
||||
};
|
||||
}
|
||||
|
||||
/// Returns the number of generations withing the current node.
|
||||
/// Returns the number of generations within the current node.
|
||||
pub fn height(self: *const Self) usize {
|
||||
return switch (self.*) {
|
||||
.internal => |internal| internal.height,
|
||||
@@ -299,7 +299,7 @@ pub fn SumTree(comptime T: type) type {
|
||||
self.checkInvariants(context);
|
||||
return null;
|
||||
}
|
||||
// Otherwise, create a new node and propogate to parent
|
||||
// Otherwise, create a new node and propagate to parent
|
||||
const newInternal = try gpa.create(Self);
|
||||
newInternal.* = .{ .internal = .{
|
||||
.height = internal.height,
|
||||
|
||||
Reference in New Issue
Block a user