Skip to content

Commit 6f8c3ab

Browse files
authored
Merge pull request #1167 from lightpanda-io/typos
correct typos (all in comments)
2 parents 4468932 + ca3efb3 commit 6f8c3ab

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/browser/dom/html_collection.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ const Opts = struct {
286286

287287
// WEB IDL https://dom.spec.whatwg.org/#htmlcollection
288288
// HTMLCollection is re implemented in zig here because libdom
289-
// dom_html_collection expects a comparison function callback as arguement.
289+
// dom_html_collection expects a comparison function callback as argument.
290290
// But we wanted a dynamically comparison here, according to the match tagname.
291291
pub const HTMLCollection = struct {
292292
matcher: Matcher,

src/browser/dom/node.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ pub const Node = struct {
473473

474474
// Check if the hierarchy node tree constraints are respected.
475475
// For now, it checks only if new nodes are not self.
476-
// TODO implements the others contraints.
476+
// TODO implements the others constraints.
477477
// see https://dom.spec.whatwg.org/#concept-node-tree
478478
pub fn hierarchy(self: *parser.Node, nodes: []const NodeOrText) bool {
479479
for (nodes) |n| {

src/browser/dom/performance.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ test "Performance: now" {
195195
}
196196

197197
var after = perf._now();
198-
while (after <= now) { // Loop untill after > now
198+
while (after <= now) { // Loop until after > now
199199
try testing.expectEqual(after, now);
200200
after = perf._now();
201201
}

src/browser/html/svg_elements.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub const SVGElement = struct {
2525
// Currently the prototype chain is not implemented (will not be returned by toInterface())
2626
// For that we need parser.SvgElement and the derived types with tags in the v-table.
2727
pub const prototype = *Element;
28-
// While this is a Node, could consider not exposing the subtype untill we have
28+
// While this is a Node, could consider not exposing the subtype until we have
2929
// a Self type to cast to.
3030
pub const subtype = .node;
3131
};

src/cdp/cdp.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ const IsolatedWorld = struct {
702702
// The isolate world must share at least some of the state with the related page, specifically the DocumentHTML
703703
// (assuming grantUniveralAccess will be set to True!).
704704
// We just created the world and the page. The page's state lives in the session, but is update on navigation.
705-
// This also means this pointer becomes invalid after removePage untill a new page is created.
705+
// This also means this pointer becomes invalid after removePage until a new page is created.
706706
// Currently we have only 1 page/frame and thus also only 1 state in the isolate world.
707707
pub fn createContext(self: *IsolatedWorld, page: *Page) !void {
708708
// if (self.executor.context != null) return error.Only1IsolatedContextSupported;

src/http/Client.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ pub const Transfer = struct {
808808
self.deinit();
809809
}
810810

811-
// abortAuthChallenge is called when an auth chanllenge interception is
811+
// abortAuthChallenge is called when an auth challenge interception is
812812
// abort. We don't call self.client.endTransfer here b/c it has been done
813813
// before interception process.
814814
pub fn abortAuthChallenge(self: *Transfer) void {

src/server.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ pub const Client = struct {
487487
}
488488

489489
// called by CDP
490-
// Websocket frames have a variable lenght header. For server-client,
490+
// Websocket frames have a variable length header. For server-client,
491491
// it could be anywhere from 2 to 10 bytes. Our IO.Loop doesn't have
492492
// writev, so we need to get creative. We'll JSON serialize to a
493493
// buffer, where the first 10 bytes are reserved. We can then backfill

0 commit comments

Comments
 (0)