Skip to content

Commit c444362

Browse files
Correct the argument names for secrets.choice and secrets.randbelow in secrets.rst (pythonGH-118098)
Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
1 parent 33d2019 commit c444362

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)