diff options
author | Michał Łępicki <michallepicki@users.noreply.github.com> | 2020-11-29 19:27:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 19:27:48 +0100 |
commit | dc69ff97674cd1819d48c2a3feeb229bb7c27656 (patch) | |
tree | d0564f99a46fd9fcfe0016d988cf6622a15a2f88 /src | |
parent | 384f1cec971f596a272550f4f88aacbd89e65085 (diff) | |
download | gleam_stdlib-dc69ff97674cd1819d48c2a3feeb229bb7c27656.tar.gz gleam_stdlib-dc69ff97674cd1819d48c2a3feeb229bb7c27656.zip |
Fix float.parse/1 returned error value in example (#137)
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/float.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gleam/float.gleam b/src/gleam/float.gleam index 8018c95..f3944f3 100644 --- a/src/gleam/float.gleam +++ b/src/gleam/float.gleam @@ -9,10 +9,10 @@ pub type Float = /// /// ## Examples /// > parse("2.3") -/// Some(2.3) +/// Ok(2.3) /// /// > parse("ABC") -/// None +/// Error(Nil) /// pub external fn parse(String) -> Result(Float, Nil) = "gleam_stdlib" "parse_float" |