Skip to content

Commit cdb65a2

Browse files
committed
fixed genetic_algo.go
1 parent 3eb77fe commit cdb65a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genetic_algorithm/genetic_algo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func geneticString(target string, charmap []rune) (int, int, string) {
6262
}
6363

6464
// Generate random starting population
65-
pop := make([]populationItem, populationNum, populationNum)
65+
pop := make([]populationItem, populationNum)
6666
for i := 0; i < populationNum; i++ {
6767
key := ""
6868
for x := 0; x < utf8.RuneCountInString(target); x++ {

0 commit comments

Comments
 (0)