Skip to content

Commit dfab589

Browse files
authored
Fix cached calls count in factorial example
That's 11 caches, from 0 through 10 inclusive.
1 parent d440a0f commit dfab589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functools.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The :mod:`functools` module defines the following functions:
4646
3628800
4747
>>> factorial(5) # just looks up cached value result
4848
120
49-
>>> factorial(12) # makes two new recursive calls, the other 10 are cached
49+
>>> factorial(12) # makes two new recursive calls, the other 11 are cached
5050
479001600
5151

5252
The cache is threadsafe so that the wrapped function can be used in

0 commit comments

Comments
 (0)