all: remove or clarify repeated words in comments

This commit is contained in:
Dan Kortschak
2021-08-08 15:49:07 +09:30
parent 054da3c55f
commit 85ca8969b8
6 changed files with 8 additions and 8 deletions

View File

@@ -553,7 +553,7 @@ func PermutationIndex(perm []int, n, k int) int {
// The permutation index is found by finding the combination index and the
// equalPermutation index. The combination index is found by just sorting
// the elements, and the the permutation index is the ordering of the size
// the elements, and the permutation index is the ordering of the size
// of the elements.
tmp := make([]int, len(perm))
copy(tmp, perm)