Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo
  • Loading branch information
rhettinger committed May 10, 2020
commit a412632534c7ddf5a535db12c19c5429b9ab0a32
2 changes: 1 addition & 1 deletion Doc/library/functools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The :mod:`functools` module defines the following functions:

@cache
def factorial(n):
return n * fact(n-1) if n else 1
return n * factorial(n-1) if n else 1

>>> factorial(10) # no previously cached result, makes 11 recursive calls
3628800
Expand Down