Skip to content

Commit

Permalink
Merge pull request #144 from cortinico/patch-success-or-failure
Browse files Browse the repository at this point in the history
[SuccessOrFailure] Fixed return type of findUserByName in the sealed class example
  • Loading branch information
elizarov committed Aug 14, 2018
2 parents 445c482 + c21a4bf commit bcea763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/stdlib/success-or-failure.md
Expand Up @@ -373,7 +373,7 @@ sealed class FindUserResult {
// other cases that need different business-specific handling code
}

fun findUserByName(name: String): UserResult
fun findUserByName(name: String): FindUserResult
```

> This is one of the reasons that `SuccessOrFailure` was not named `Result`. That is, to prevent its abuse
Expand Down

0 comments on commit bcea763

Please sign in to comment.