Skip to content

Commit

Permalink
Fixed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rcardin committed Jun 28, 2024
1 parent 1d61f6e commit 2d4a929
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/scala/in/rcard/raise4s/Raise.scala
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ object Raise {
* val one: Either[Nothing, Int] = Right(1)
* val left: Either[String, Int] = Left("error")
* val actual = either {
* val x = one.bind()
* val x = one.value
* val y = recover(
* {
* left.bind()
* left.value
* },
* { _ => 1 }
* )
Expand Down Expand Up @@ -364,8 +364,8 @@ object Raise {
* val some: Option[Int] = Some(1)
* val none: Option[Int] = None
* val actual = option {
* val x = some.bind()
* val y = recover({ none.bind() }, { _ => 1 })
* val x = some.value
* val y = recover({ none.value }, { _ => 1 })
* x + y
* }
* actual should be(Some(2))
Expand All @@ -387,8 +387,8 @@ object Raise {
* val one: Try[Int] = Success(1)
* val failure: Try[Int] = Failure(new Exception("error"))
* val actual = asTry {
* val x = one.bind()
* val y = recover({ failure.bind() }, { _ => 1 })
* val x = one.value
* val y = recover({ failure.value }, { _ => 1 })
* x + y
* }
* actual should be(Success(2))
Expand Down

0 comments on commit 2d4a929

Please sign in to comment.