std.fmt: Fix compile error in Parser.peek() (#20532)

This commit is contained in:
Simon Ekström 2024-10-30 08:45:23 +01:00 committed by GitHub
parent c39ba682e3
commit 17a87d7341
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -386,7 +386,7 @@ pub const Parser = struct {
const original_i = self.iter.i;
defer self.iter.i = original_i;
var i = 0;
var i: usize = 0;
var code_point: ?u21 = null;
while (i <= n) : (i += 1) {
code_point = self.iter.nextCodepoint();