Skip to content

Commit c117b03

Browse files
authored
Docs: Fix typo in random_derangement recipe (GH-138599)
1 parent bbe00d5 commit c117b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/random.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ or the :pypi:`more-itertools` project:
666666
"Choose a permutation where no element is in its original position."
667667
seq = tuple(iterable)
668668
if len(seq) < 2:
669-
raise ValueError('derangments require at least two values')
669+
raise ValueError('derangements require at least two values')
670670
perm = list(seq)
671671
while True:
672672
random.shuffle(perm)

0 commit comments

Comments
 (0)