From b735764898412c5b9388fdf729c8ad8db43ddde5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 9 Jun 2019 19:24:24 -0400 Subject: different array literal syntax when inferring the size old syntax: []i32{1, 2, 3} new syntax: [_]i32{1, 2, 3} closes #1797 --- std/fmt/parse_float.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/fmt/parse_float.zig') diff --git a/std/fmt/parse_float.zig b/std/fmt/parse_float.zig index 51f3f2f0cb..ce2cc70768 100644 --- a/std/fmt/parse_float.zig +++ b/std/fmt/parse_float.zig @@ -390,7 +390,7 @@ test "fmt.parseFloat" { const approxEq = std.math.approxEq; const epsilon = 1e-7; - inline for ([]type{ f16, f32, f64, f128 }) |T| { + inline for ([_]type{ f16, f32, f64, f128 }) |T| { const Z = @IntType(false, T.bit_count); testing.expectError(error.InvalidCharacter, parseFloat(T, "")); -- cgit v1.2.3