aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index eb1f591..68fe33a 100644
--- a/README.rst
+++ b/README.rst
@@ -35,7 +35,7 @@ Calculate the factorial of n, the hard way:
return p;
});
t.then([](std::pair<int, int> p) {
- printf("fac(%d) = %d\n", p.second, p.first);
+ printf("fac(%d) = %d\n", p.second - 1, p.first);
});
/* no actual calculation until here */
root.resolve(std::make_pair(1, 1));