Skip to content

Commit a42da30

Browse files
Converting int to rune
1 parent ac5590d commit a42da30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

math/permutation/heaps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Heaps(out chan []string, n int) {
3737
func GenerateElementSet(out chan []string, n int) {
3838
elementSet := make([]string, n)
3939
for i := range elementSet {
40-
elementSet[i] = string(i + 49) // Adjust this if you want to change your charset
40+
elementSet[i] = string(rune(i + 49)) // Adjust this if you want to change your charset
4141
}
4242
out <- elementSet
4343
}

0 commit comments

Comments
 (0)