From 6f7b727d8de7c7f5dc73251d7d1c95b5a369745f Mon Sep 17 00:00:00 2001 From: Stefan Hecken Date: Thu, 20 Apr 2017 10:45:06 +0200 Subject: [PATCH] add information callable returns null not result function --- src/Data/Result.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/Result.php b/src/Data/Result.php index b9a60e03a04b..21a487d59f0b 100644 --- a/src/Data/Result.php +++ b/src/Data/Result.php @@ -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. * @@ -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. *