Closed marc136 closed 4 years ago
Hello, it seems like the description of ok was a direct copy of the description of err, so I swapped the words and updated the result.
ok
err
Also, the String.toInt in elm 0.19 returns a Maybe (see docs), so I added a Result.fromMaybe to the examples.
String.toInt
Maybe
Result.fromMaybe
If I should split it into two commits, please say so.
Good catch, thanks!
Maybe long-term finding a function that actually returns a Result for the docs example is good, like a json decoder.
Hello, it seems like the description of
ok
was a direct copy of the description oferr
, so I swapped the words and updated the result.Also, the
String.toInt
in elm 0.19 returns aMaybe
(see docs), so I added aResult.fromMaybe
to the examples.If I should split it into two commits, please say so.