Merge pull request #2547 from mvanhorn/osc/fix-comment-typos

chore: fix three typos in comments and error message
This commit is contained in:
Pierre Tachoire
2026-05-26 10:31:00 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -1026,7 +1026,7 @@ pub const BrowserContext = struct {
// reserve 10 bytes for websocket header
buf.appendSliceAssumeCapacity(&.{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 });
// -1 because we dont' want the closing brace '}'
// -1 because we don't want the closing brace '}'
buf.appendSliceAssumeCapacity(msg[0 .. msg.len - 1]);
buf.appendSliceAssumeCapacity(field);
buf.appendSliceAssumeCapacity(session_id);

View File

@@ -98,7 +98,7 @@ pub fn release(self: *Pool, conn: Sqlite.Conn) void {
const testing = @import("../../testing.zig");
test "Sqlite: Pool" {
// :memory: _has_ to run with a single connetion in the pool, which isn't
// :memory: _has_ to run with a single connection in the pool, which isn't
// that useful for testing. So we create a temp file.
std.fs.cwd().deleteFile("/tmp/lightpanda_test.sqlite") catch {};

View File

@@ -198,7 +198,7 @@ const Statement = struct {
const data = c.sqlite3_column_text(stmt, @intCast(index));
return @as([*c]const u8, @ptrCast(data))[0..@intCast(len) :0];
},
else => @compileError("unsupport column type: " ++ @typeName(T)),
else => @compileError("unsupported column type: " ++ @typeName(T)),
};
}