trying to make Str.toNum work for Ints

This commit is contained in:
Anton-4 2021-12-01 20:37:21 +01:00
parent 2e21fd0cb9
commit e63701c5d1
6 changed files with 6 additions and 15 deletions

View file

@ -1324,7 +1324,7 @@ fn str_trim_right(symbol: Symbol, var_store: &mut VarStore) -> Def {
lowlevel_1(symbol, LowLevel::StrTrimRight, var_store)
}
/// Str.toNum : Str -> Result (Num a) [ ExpectedNum a ]*
/// Str.toNum : Str -> Result (Num a) {}
fn str_to_num(symbol: Symbol, var_store: &mut VarStore) -> Def {
lowlevel_1(symbol, LowLevel::StrToNum, var_store)
}