diff options
author | Adam Dangoor <adamdangoor@gmail.com> | 2024-05-10 14:30:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 14:30:42 (GMT) |
commit | c444362c6e0b6c01f49c3bee864100f52bd3b640 (patch) | |
tree | 87626e5cd46f4824c3258f981bbf47cb0b691b5b /Doc/library/secrets.rst | |
parent | 33d20199af65c741bdc908a968edd8dc179b6974 (diff) | |
download | cpython-c444362c6e0b6c01f49c3bee864100f52bd3b640.zip cpython-c444362c6e0b6c01f49c3bee864100f52bd3b640.tar.gz cpython-c444362c6e0b6c01f49c3bee864100f52bd3b640.tar.bz2 |
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`.
Diffstat (limited to 'Doc/library/secrets.rst')
-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) |