https://github.com/python/cpython/commit/0874a400a86c563cff71847f35674d4e1bcc3957
commit: 0874a400a86c563cff71847f35674d4e1bcc3957
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: encukou <[email protected]>
date: 2024-05-10T14:56:33Z
summary:

[3.13] Correct the argument names for `secrets.choice` and `secrets.randbelow` 
in `secrets.rst` (GH-118098) (GH-118906)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in 
`secrets.rst` (GH-118098)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in 
`secrets.rst`.
(cherry picked from commit c444362c6e0b6c01f49c3bee864100f52bd3b640)

Co-authored-by: Adam Dangoor <[email protected]>

files:
M Doc/library/secrets.rst

diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst
index e609948de552bd..1401a925103517 100644
--- a/Doc/library/secrets.rst
+++ b/Doc/library/secrets.rst
@@ -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)
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to