Skip to content

Commit 00252cc

Browse files
Peiffaplkollar
authored andcommitted
Docs: Fix typo in random_derangement recipe (pythonGH-138599)
1 parent b0267b3 commit 00252cc

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)