]> granicus.if.org Git - python/commitdiff
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
authorAkshay Sharma <akshay.sharma09695@gmail.com>
Fri, 31 May 2019 16:41:17 +0000 (22:11 +0530)
committerCheryl Sabella <cheryl.sabella@gmail.com>
Fri, 31 May 2019 16:41:17 +0000 (12:41 -0400)
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 bf660ae9defa078642b490196af14b4bac8eb433..b51e96bc40743fcba600850e9f2632eca4a6eacd 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