File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
core/src/main/scala/in/rcard/raise4s Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -332,10 +332,10 @@ object Raise {
332332 * val one: Either[Nothing, Int] = Right(1)
333333 * val left: Either[String, Int] = Left("error")
334334 * val actual = either {
335- * val x = one.bind()
335+ * val x = one.value
336336 * val y = recover(
337337 * {
338- * left.bind()
338+ * left.value
339339 * },
340340 * { _ => 1 }
341341 * )
@@ -364,8 +364,8 @@ object Raise {
364364 * val some: Option[Int] = Some(1)
365365 * val none: Option[Int] = None
366366 * val actual = option {
367- * val x = some.bind()
368- * val y = recover({ none.bind() }, { _ => 1 })
367+ * val x = some.value
368+ * val y = recover({ none.value }, { _ => 1 })
369369 * x + y
370370 * }
371371 * actual should be(Some(2))
@@ -387,8 +387,8 @@ object Raise {
387387 * val one: Try[Int] = Success(1)
388388 * val failure: Try[Int] = Failure(new Exception("error"))
389389 * val actual = asTry {
390- * val x = one.bind()
391- * val y = recover({ failure.bind() }, { _ => 1 })
390+ * val x = one.value
391+ * val y = recover({ failure.value }, { _ => 1 })
392392 * x + y
393393 * }
394394 * actual should be(Success(2))
You can’t perform that action at this time.
0 commit comments