Skip to content

Commit af8db2b

Browse files
[3.12] Correct the argument names for secrets.choice and secrets.randbelow in secrets.rst (GH-118098) (GH-118907)
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 c444362) Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
1 parent 9f8f14a commit af8db2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/secrets.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ randomness that your operating system provides.
4242
sources provided by the operating system. See
4343
:class:`random.SystemRandom` for additional details.
4444

45-
.. function:: choice(sequence)
45+
.. function:: choice(seq)
4646

4747
Return a randomly chosen element from a non-empty sequence.
4848

49-
.. function:: randbelow(n)
49+
.. function:: randbelow(exclusive_upper_bound)
5050

51-
Return a random int in the range [0, *n*).
51+
Return a random int in the range [0, *exclusive_upper_bound*).
5252

5353
.. function:: randbits(k)
5454

0 commit comments

Comments
 (0)