mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
fix: remove first arg input: T from parseFloat in zig
This commit is contained in:
parent
b58a965e08
commit
d8a3a961bf
1 changed files with 1 additions and 1 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue