mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-133904: Fix math.factorial documentation (GH-133907) (#133922)
* [3.13] gh-133904: Fix `math.factorial` documentation (GH-133907)
(cherry picked from commit 27ed64575d)
Co-authored-by: mkaraev <maruf.karaev97@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
parent
8e923f3659
commit
532acbd0fa
3 changed files with 4 additions and 9 deletions
|
|
@ -2009,13 +2009,11 @@ math.factorial
|
|||
/
|
||||
|
||||
Find n!.
|
||||
|
||||
Raise a ValueError if x is negative or non-integral.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
math_factorial(PyObject *module, PyObject *arg)
|
||||
/*[clinic end generated code: output=6686f26fae00e9ca input=713fb771677e8c31]*/
|
||||
/*[clinic end generated code: output=6686f26fae00e9ca input=366cc321df3d4773]*/
|
||||
{
|
||||
long x, two_valuation;
|
||||
int overflow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue