fix: remove first arg input: T from parseFloat in zig

This commit is contained in:
rvcas 2021-12-02 15:15:14 -05:00
parent b58a965e08
commit d8a3a961bf

View file

@ -34,7 +34,7 @@ pub fn exportParseInt(comptime T: type, comptime name: []const u8) void {
pub fn exportParseFloat(comptime T: type, comptime name: []const u8) void {
comptime var f = struct {
fn func(input: T, buf: RocStr) callconv(.C) NumParseResult(T) {
fn func(buf: RocStr) callconv(.C) NumParseResult(T) {
if (std.fmt.parseFloat(T, buf.asSlice())) |success| {
return .{ .errorcode = 0, .value = success };
} else |err| {