]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets...
authorAdam Dangoor <adamdangoor@gmail.com>
Fri, 10 May 2024 14:30:42 +0000 (15:30 +0100)
committerGitHub <noreply@github.com>
Fri, 10 May 2024 14:30:42 +0000 (14:30 +0000)
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.

Doc/library/secrets.rst

index e609948de552bd8f39b3d5cde9de313ef6765da7..1401a925103517efbe964c2152e2a6d60f761bb7 100644 (file)
@@ -42,13 +42,13 @@ randomness that your operating system provides.
    sources provided by the operating system.  See
    :class:`random.SystemRandom` for additional details.
 
-.. function:: choice(sequence)
+.. function:: choice(seq)
 
    Return a randomly chosen element from a non-empty sequence.
 
-.. function:: randbelow(n)
+.. function:: randbelow(exclusive_upper_bound)
 
-   Return a random int in the range [0, *n*).
+   Return a random int in the range [0, *exclusive_upper_bound*).
 
 .. function:: randbits(k)