Skip to content

Commit 3856972

Browse files
committed
Fix description of FitMax()
1 parent 8b8aa7b commit 3856972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

individuals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (indis Individuals) FitMin() float64 {
124124
return minFloat64s(indis.getFitnesses())
125125
}
126126

127-
// FitMax returns the best fitness of a slice of individuals.
127+
// FitMax returns the worst fitness of a slice of individuals.
128128
func (indis Individuals) FitMax() float64 {
129129
if indis.IsSortedByFitness() {
130130
return indis[len(indis)-1].Fitness

0 commit comments

Comments
 (0)