From 17a87d734167b500761ef0d61493342dea0ae01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Ekstr=C3=B6m?= Date: Wed, 30 Oct 2024 08:45:23 +0100 Subject: [PATCH] std.fmt: Fix compile error in Parser.peek() (#20532) --- lib/std/fmt.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();