Skip to content

Commit

Permalink
add information callable returns null not result function
Browse files Browse the repository at this point in the history
  • Loading branch information
shecken committed Apr 20, 2017
1 parent 8df3830 commit 6f7b727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Data/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function map(callable $f);
/**
* Get a new result from the callable or do nothing if this is an error.
*
* If null is returned the result is not touched.
* If null is returned from $f, the result is not touched.
*
* Does nothing if !isOK. This is monadic bind.
*
Expand All @@ -74,7 +74,7 @@ public function then(callable $f);
* Feed the error into a callable and replace this with the result
* or do nothing if this is a value.
*
* If null is returned, the error in the result is not touched.
* If null is returned from $f, the error in the result is not touched.
*
* Does nothing if !isError.
*
Expand Down

0 comments on commit 6f7b727

Please sign in to comment.