authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-03 20:51:57 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-03 20:51:57 -08:00
logf183818589f0ee910ba024c2086aec9cad3366d8
treea1aadd1dbb5552ae12143b685240cde4f39f8227
parentd4423c228d4eb0a749fec2db387df8b5bf522d3e

fix endsInANumber and parseIPv4Number doc comment


1 files changed, 2 insertions(+), 2 deletions(-)

url.zig+2-2
......@@ -1257,7 +1257,7 @@ fn domainToAscii(allocator: std.mem.Allocator, domain: []const u8, beStrict: boo
12571257 return result;
12581258}
12591259
1260// https://url.spec.whatwg.org/#ends-in-a-number-checker
1260/// https://url.spec.whatwg.org/#ends-in-a-number-checker
12611261fn endsInANumber(input: []const u8) bool {
12621262 // 1. Let parts be the result of strictly splitting input on U+002E (.).
12631263 // 2. If the last item in parts is the empty string, then:
......@@ -1337,7 +1337,7 @@ fn parseIPv4(input: []const u8) !u32 {
13371337 return ipv4;
13381338}
13391339
1340// https://url.spec.whatwg.org/#ipv4-number-parser
1340/// https://url.spec.whatwg.org/#ipv4-number-parser
13411341fn parseIPv4Number(input_: []const u8, T: type) !T {
13421342 var input = input_;
13431343 // 1. If input is the empty string, then return failure.