fix(lint): correct reported typos
Zig Project Action / Lint, Spell-check and test zig project (push) Has been cancelled

This commit is contained in:
2026-06-06 20:51:59 +02:00
parent ae666cb436
commit b312c0e2f3
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ Implementation of a [rope datastructure](https://en.wikipedia.org/wiki/Rope_(dat
Based on the MIT-Licensed implementation of noahbald: https://github.com/noahbald/noe Based on the MIT-Licensed implementation of noahbald: https://github.com/noahbald/noe
Please check out his excelent [write up](https://www.noahwbaldwin.me/blogs/writing-an-editor) about the implementation of an editor in zig. Please check out his excellent [write up](https://www.noahwbaldwin.me/blogs/writing-an-editor) about the implementation of an editor in zig.
Another great resource for ropes has been created by [Zed](https://zed.dev/blog/zed-decoded-rope-sumtree), it is worth reading to further understand the implementation details of this implementation. Another great resource for ropes has been created by [Zed](https://zed.dev/blog/zed-decoded-rope-sumtree), it is worth reading to further understand the implementation details of this implementation.
+2 -2
View File
@@ -222,7 +222,7 @@ pub fn ParallelIter(T: type) type {
self.sink = try gpa.alloc(T, self.impl.len()); self.sink = try gpa.alloc(T, self.impl.len());
if (self.poolSize == 0) { if (self.poolSize == 0) {
return; // Assume threads are unavailable, complete syncronously return; // Assume threads are unavailable, complete synchronously
} else { } else {
for (self.pool) |*thread| { for (self.pool) |*thread| {
thread.* = try std.Thread.spawn(.{}, threadHandle, .{&self}); thread.* = try std.Thread.spawn(.{}, threadHandle, .{&self});
@@ -232,7 +232,7 @@ pub fn ParallelIter(T: type) type {
pub fn join(self: *Self) []T { pub fn join(self: *Self) []T {
if (self.pool.len == 0) { if (self.pool.len == 0) {
// Assume threads are unavailable, complete syncronously // Assume threads are unavailable, complete synchronously
while (true) { while (true) {
self.handle() orelse break; self.handle() orelse break;
} }
+2 -2
View File
@@ -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 { pub fn height(self: *const Self) usize {
return switch (self.*) { return switch (self.*) {
.internal => |internal| internal.height, .internal => |internal| internal.height,
@@ -299,7 +299,7 @@ pub fn SumTree(comptime T: type) type {
self.checkInvariants(context); self.checkInvariants(context);
return null; 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); const newInternal = try gpa.create(Self);
newInternal.* = .{ .internal = .{ newInternal.* = .{ .internal = .{
.height = internal.height, .height = internal.height,