summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkshay Sharma <akshay.sharma09695@gmail.com>2019-05-31 16:41:17 (GMT)
committerCheryl Sabella <cheryl.sabella@gmail.com>2019-05-31 16:41:17 (GMT)
commit4612671df2742eade8ecf8003a6ce1247973c135 (patch)
treee57e3dec7ebf82e4e5d2943ed011dde5e7037810
parent8cbb5b6625268400d6e9092b75b06d6f90398dc9 (diff)
downloadcpython-4612671df2742eade8ecf8003a6ce1247973c135.zip
cpython-4612671df2742eade8ecf8003a6ce1247973c135.tar.gz
cpython-4612671df2742eade8ecf8003a6ce1247973c135.tar.bz2
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
-rw-r--r--Doc/library/math.rst2
-rw-r--r--Misc/NEWS.d/next/Documentation/2018-04-08-19-09-22.bpo-25735.idVQBD.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index bf660ae..b51e96b 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -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
index 0000000..8d22cf6
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2018-04-08-19-09-22.bpo-25735.idVQBD.rst
@@ -0,0 +1 @@
+Added documentation for func factorial to indicate that returns integer values