]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 31 May 2019 16:58:27 +0000 (09:58 -0700)
committerGitHub <noreply@github.com>
Fri, 31 May 2019 16:58:27 +0000 (09:58 -0700)
(cherry picked from commit 4612671df2742eade8ecf8003a6ce1247973c135)

Co-authored-by: Akshay Sharma <akshay.sharma09695@gmail.com>
Doc/library/math.rst
Misc/NEWS.d/next/Documentation/2018-04-08-19-09-22.bpo-25735.idVQBD.rst [new file with mode: 0644]

index b06b054d516ad515eb0929a3b311895b6e8c665f..fd96d7a95864f6182c07429672f04027414c0876 100644 (file)
@@ -50,7 +50,7 @@ Number-theoretic and representation functions
 
 .. function:: factorial(x)
 
-   Return *x* factorial.  Raises :exc:`ValueError` if *x* is not integral or
+   Return *x* factorial as an integer.  Raises :exc:`ValueError` if *x* is not integral or
    is negative.
 
 
diff --git a/Misc/NEWS.d/next/Documentation/2018-04-08-19-09-22.bpo-25735.idVQBD.rst b/Misc/NEWS.d/next/Documentation/2018-04-08-19-09-22.bpo-25735.idVQBD.rst
new file mode 100644 (file)
index 0000000..8d22cf6
--- /dev/null
@@ -0,0 +1 @@
+Added documentation for func factorial to indicate that returns integer values