Skip to content

Commit

Permalink
chore: Regen docs after update
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Mar 4, 2024
1 parent 70f93d3 commit 1090422
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions stdlib/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,40 @@ Type declarations included in the Number module.

### Number.**ParseIntError**

<details disabled>
<summary tabindex="-1">Added in <code>next</code></summary>
No other changes yet.
</details>

```grain
enum ParseIntError {
EmptyString,
InvalidDigit,
InvalidRadix,
ParseIntEmptyString,
ParseIntInvalidDigit,
ParseIntInvalidRadix,
}
```

Represents an error that can occur when parsing ints.
Represents an error that occurred trying to parse an integer.

Variants:

```grain
ParseIntEmptyString
```

Represents an error caused by trying to parse an empty string.

```grain
ParseIntInvalidDigit
```

Represents an error caused by trying to parse a string with an invalid character.

```grain
ParseIntInvalidRadix
```

Represents an error caused by trying to parse with an invalid radix.

## Values

Expand Down

0 comments on commit 1090422

Please sign in to comment.