diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-05-10 14:45:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 14:45:22 (GMT) |
commit | af8db2b6817e1ae25cbee98e67d1f4bac9d6af9c (patch) | |
tree | 18e900b777966ac45c8151871570f08114c8730d | |
parent | 9f8f14a6daebc6e22bc1c787699157a478ea94fb (diff) | |
download | cpython-af8db2b6817e1ae25cbee98e67d1f4bac9d6af9c.zip cpython-af8db2b6817e1ae25cbee98e67d1f4bac9d6af9c.tar.gz cpython-af8db2b6817e1ae25cbee98e67d1f4bac9d6af9c.tar.bz2 |
[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 c444362c6e0b6c01f49c3bee864100f52bd3b640)
Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
-rw-r--r-- | Doc/library/secrets.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst index e609948..1401a92 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) |