Skip to content

Commit

Permalink
Correct the argument names for secrets.choice and `secrets.randbelo…
Browse files Browse the repository at this point in the history
…w` in `secrets.rst` (pythonGH-118098)

Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`.
  • Loading branch information
adamtheturtle authored May 10, 2024
1 parent 33d2019 commit c444362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/secrets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c444362

Please sign in to comment.