From 100e8796511297c15ec525efa165cb92a49f2dae Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Sun, 3 Mar 2024 19:45:31 -0700 Subject: [PATCH] fix docs --- stdlib/number.gr | 4 ++-- stdlib/number.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/number.gr b/stdlib/number.gr index 7985d175b..f62afa756 100644 --- a/stdlib/number.gr +++ b/stdlib/number.gr @@ -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 diff --git a/stdlib/number.md b/stdlib/number.md index 3754686e3..6e0451555 100644 --- a/stdlib/number.md +++ b/stdlib/number.md @@ -781,7 +781,7 @@ Returns: versionchanges -nextSwitched from a string-based error message to a parseInt error type +nextSwitched from a string-based error message to a structured error enum @@ -810,7 +810,7 @@ Returns: |type|description| |----|-----------| -|`Result`|`Ok(value)` containing the parsed number on a successful parse or `Err(msg)` containing a parseInt exception| +|`Result`|`Ok(value)` containing the parsed number on a successful parse or `Err(err)` containing a variant of `ParseIntError`| ### Number.**parseFloat**