From 23cdab9ad46f3d67d2dd759966ff1c490a99b2c1 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Fri, 19 Apr 2024 12:52:43 +0100 Subject: [PATCH] Correct the argument names for `secrets.choice` and `secrets.randbelow` in `secrets.rst`. --- Doc/library/secrets.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/secrets.rst b/Doc/library/secrets.rst index 8f1a68d1d8816c..7acaa4a9ceb259 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)