roc icon indicating copy to clipboard operation
roc copied to clipboard

Repl suggests Str.strToNum, but Str module does not expose that function

Open nick-gravgaard opened this issue 2 years ago • 0 comments

Here's the output from a roc repl session which shows it listing the function Str.strToNum as one which is available to the user, but the Str module does not expose that function:

» Str.strToInt "1"

── NOT EXPOSED ─────────────────────────────────────────────────────────────────

The Str module does not expose `strToInt`:

4│      Str.strToInt "1"
        ^^^^^^^^^^^^

Did you mean one of these?

    Str.strToNum
    Str.toNat
    Str.toI64
    Str.toI32


» Str.strToNum "1"

── UNRECOGNIZED NAME ───────────────────────────────────────────────────────────

The Str module does not expose anything by the name strToNum.

nick-gravgaard avatar Oct 14 '22 10:10 nick-gravgaard