8000 fix math.factorial documentation · python/cpython@56b78c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56b78c4

Browse files
committed
fix math.factorial documentation
1 parent 0eb448c commit 56b78c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Number-theoretic functions
144144

145145
.. function:: factorial(n)
146146

147-
Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not integral or
147+
Return *n* factorial as an integer. Raises :exc:`TypeError` if *n* is not integral or
148148
is negative.
149149

150150
.. versionchanged:: 3.10

0 commit comments

Comments
 (0)
0