Skip to content

Commit

Permalink
Update sympy/utilities/iterables.py
Browse files Browse the repository at this point in the history
Co-authored-by: (Lazard) S.Y. Lee  <sylee957@gmail.com>
  • Loading branch information
smichr and sylee957 authored Nov 29, 2022
1 parent 3522ca5 commit 5b7440f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sympy/utilities/iterables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2557,7 +2557,7 @@ def necklaces(n, k, free=False):
yield tuple(a)
if n == 0:
return
while 1:
while True:
i = n - 1
while a[i] == k - 1:
i -= 1
Expand Down

0 comments on commit 5b7440f

Please sign in to comment.