From c21a4bf3d80cfc053e4d617ba368a6e8570d8bde Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Wed, 8 Aug 2018 12:01:36 +0200 Subject: [PATCH] Fixed return type of findUserByName in the sealed class example --- proposals/stdlib/success-or-failure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/stdlib/success-or-failure.md b/proposals/stdlib/success-or-failure.md index 3dbcabf12..6cd9c81a9 100644 --- a/proposals/stdlib/success-or-failure.md +++ b/proposals/stdlib/success-or-failure.md @@ -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