mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
chore: fix three typos in comments and error message
- src/cdp/CDP.zig L1029 (was L780 in previous scan): "we dont' want" -> "we don't want" - src/storage/sqlite/Pool.zig L101: test comment "single connetion" -> "single connection" - src/storage/sqlite/Sqlite.zig L201: @compileError message "unsupport column type" -> "unsupported column type" Comment / compile-time string only; no runtime behavior change.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 {};
|
||||
|
||||
@@ -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)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user