From: Adam Dangoor Date: Fri, 10 May 2024 14:30:42 +0000 (+0100) Subject: Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets... X-Git-Tag: v3.14.0a1~1935 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c444362c6e0b6c01f49c3bee864100f52bd3b640;p=thirdparty%2FPython%2Fcpython.git 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`. --- diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst index e609948de552..1401a9251035 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)