Skip to content

Commit 17a87d7

Browse files
authored
std.fmt: Fix compile error in Parser.peek() (#20532)
1 parent c39ba68 commit 17a87d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/fmt.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ pub const Parser = struct {
386386
const original_i = self.iter.i;
387387
defer self.iter.i = original_i;
388388

389-
var i = 0;
389+
var i: usize = 0;
390390
var code_point: ?u21 = null;
391391
while (i <= n) : (i += 1) {
392392
code_point = self.iter.nextCodepoint();

0 commit comments

Comments
 (0)