We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac5590d commit a42da30Copy full SHA for a42da30
math/permutation/heaps.go
@@ -37,7 +37,7 @@ func Heaps(out chan []string, n int) {
37
func GenerateElementSet(out chan []string, n int) {
38
elementSet := make([]string, n)
39
for i := range elementSet {
40
- elementSet[i] = string(i + 49) // Adjust this if you want to change your charset
+ elementSet[i] = string(rune(i + 49)) // Adjust this if you want to change your charset
41
}
42
out <- elementSet
43
0 commit comments