Genetic Algorithms and Machine Learning for Programmers: best_fitness == 1000 p.47

there might be a typo on p.47

$ mix run scripts/one_max.exs
Current Best: 42
%Types.Chromosome{
age: 1,
fitness: 42,
genes: [1, 1,…1],
size: 42
}

My output:

Current Best: 1000
%Types.Chromosome{
age: 5314,
fitness: 1000,
genes: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …],
size: 42
}