Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Mar 4, 2024
1 parent 29a858c commit 100e879
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions stdlib/number.gr
Expand Up @@ -458,10 +458,10 @@ provide let isClose = (a, b, relativeTolerance=1e-9, absoluteTolerance=0.0) => {
*
* @param string: The string to parse
* @param radix: The number system base to use when parsing the input string
* @returns `Ok(value)` containing the parsed number on a successful parse or `Err(msg)` containing a parseInt exception
* @returns `Ok(value)` containing the parsed number on a successful parse or `Err(err)` containing a variant of `ParseIntError`
*
* @since v0.4.5
* @history v0.6.0: Switched from a string-based error message to a parseInt error type
* @history v0.6.0: Switched from a string-based error message to a structured error enum
*/
provide let parseInt = Atoi.parseInt

Expand Down
4 changes: 2 additions & 2 deletions stdlib/number.md
Expand Up @@ -781,7 +781,7 @@ Returns:
<tr><th>version</th><th>changes</th></tr>
</thead>
<tbody>
<tr><td><code>next</code></td><td>Switched from a string-based error message to a parseInt error type</td></tr>
<tr><td><code>next</code></td><td>Switched from a string-based error message to a structured error enum</td></tr>
</tbody>
</table>
</details>
Expand Down Expand Up @@ -810,7 +810,7 @@ Returns:

|type|description|
|----|-----------|
|`Result<Number, Atoi.ParseIntError>`|`Ok(value)` containing the parsed number on a successful parse or `Err(msg)` containing a parseInt exception|
|`Result<Number, Atoi.ParseIntError>`|`Ok(value)` containing the parsed number on a successful parse or `Err(err)` containing a variant of `ParseIntError`|

### Number.**parseFloat**

Expand Down

0 comments on commit 100e879

Please sign in to comment.