]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] Doc: Fix random.uniform example comment. (GH-25784) (GH-25843)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 May 2021 12:43:04 +0000 (05:43 -0700)
committerGitHub <noreply@github.com>
Mon, 3 May 2021 12:43:04 +0000 (05:43 -0700)
(cherry picked from commit 440c0257262fec6f519bb81e49f1a4f341aeed66)

Co-authored-by: Julien Palard <julien@palard.fr>
Automerge-Triggered-By: GH:JulienPalard
Doc/library/random.rst

index 0e703251259aa756ebcf5c665e03f7fb59b52f84..f2d6749422a15a5bd86dfcce119bb3db254ceaa3 100644 (file)
@@ -409,7 +409,7 @@ Basic examples::
    >>> random()                             # Random float:  0.0 <= x < 1.0
    0.37444887175646646
 
-   >>> uniform(2.5, 10.0)                   # Random float:  2.5 <= x < 10.0
+   >>> uniform(2.5, 10.0)                   # Random float:  2.5 <= x <= 10.0
    3.1800146073117523
 
    >>> expovariate(1 / 5)                   # Interval between arrivals averaging 5 seconds