Skip to content

Commit

Permalink
Fix docs for std.int and std.float
Browse files Browse the repository at this point in the history
  • Loading branch information
gahag committed May 14, 2022
1 parent 2fbf72c commit da570b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/lib/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl NativeFun for Float {
Ok(Value::from(float))
}

[ other ] => Err(Panic::type_error(other.copy(), "int or float", context.pos)),
[ other ] => Err(Panic::type_error(other.copy(), "int, float or string", context.pos)),
args => Err(Panic::invalid_args(args.len() as u32, 1, context.pos))
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/lib/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl NativeFun for Int {
Ok(Value::from(int))
}

[ other ] => Err(Panic::type_error(other.copy(), "int or float", context.pos)),
[ other ] => Err(Panic::type_error(other.copy(), "int, float or string", context.pos)),
args => Err(Panic::invalid_args(args.len() as u32, 1, context.pos))
}
}
Expand Down

0 comments on commit da570b0

Please sign in to comment.