From ffa48c9ef1c9775aa4b676721099f8bb67f4f34e Mon Sep 17 00:00:00 2001 From: Philippe Bastiani Date: Wed, 31 Jul 2019 18:03:58 +0200 Subject: [PATCH] Fix call of stackSafeTestProgram --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 507146c..01c60be 100644 --- a/README.md +++ b/README.md @@ -561,7 +561,7 @@ val tryMonad = Try.monad() fun stackSafeTestProgram(n: Int, stopAt: Int): Free = tryMonad.bindingStackSafe { val v = Try {n + 1}.bind() - val r = if (v < stopAt) stackSafeTestProgram(M, v, stopAt).bind() else Try { v }.bind() + val r = if (v < stopAt) stackSafeTestProgram(v, stopAt).bind() else Try { v }.bind() r }