michaelbull / kotlin-result

A multiplatform Result monad for modelling success or failure operations.
ISC License
1.05k stars 63 forks source link

Typo in wiki for checking if result is an error #44

Closed stigkj closed 3 years ago

stigkj commented 3 years ago

The Elm page has this example:

val result = Err(500)
if (result is Error) {
    println("Result is not ok")
}

I guess it should be

...
if (result is Err) {
...
michaelbull commented 3 years ago

Good catch! Fixed, thanks.