Skip to content

Commit

Permalink
Fixed 'findUserByIdWithNone' in the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
rcardin committed Apr 16, 2024
1 parent 34c6aa6 commit 8b9c9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand Down

0 comments on commit 8b9c9c3

Please sign in to comment.