diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig index 123122fd560e..8deef118c01a 100644 --- a/lib/std/fmt.zig +++ b/lib/std/fmt.zig @@ -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();