Skip to content

Commit 137e9bf

Browse files
authored
Merge pull request #65 from rcardin/64-fix-the-documentation-of-either-option-and-astry-builders-removing-references-to-the-bind-function
Fixed documentation
2 parents 1d61f6e + 2d4a929 commit 137e9bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/main/scala/in/rcard/raise4s/Raise.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)