From 8b9c9c3ff2c68554532e3121d0b0e5b8efc217ba Mon Sep 17 00:00:00 2001 From: rcardin Date: Tue, 16 Apr 2024 15:03:13 +0200 Subject: [PATCH] Fixed 'findUserByIdWithNone' in the README file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 76ffd73..bfb1e3d 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ As you might guess, any fatal exception thrown inside the `$try` context will bu Last but not least, the `option` builder: ```scala 3 -def findUserByIdWithNone(id: String): User = +def findUserByIdWithNone(id: String): User raises None.type = if (id == "42") User(id, "Alice") else raise(None) val maybeUserWithOpt: Option[User] =