Skip to content

Commit

Permalink
std.fmt: Fix compile error in Parser.peek() (ziglang#20532)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeks authored Oct 30, 2024
1 parent c39ba68 commit 17a87d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/fmt.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 17a87d7

Please sign in to comment.