Skip to content

Commit

Permalink
Merge pull request DEAP#389 from kairos03/master
Browse files Browse the repository at this point in the history
Fix comment typo "numpy.array((5.6.7.8))" -> "numpy.array((5,6,7,8))"
  • Loading branch information
fmder authored Jul 12, 2019
2 parents 7475911 + 41be3ff commit a5ec46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ga/onemax_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def cxTwoPointCopy(ind1, ind2):
>>> import numpy
>>> a = numpy.array((1,2,3,4))
>>> b = numpy.array((5.6.7.8))
>>> b = numpy.array((5,6,7,8))
>>> a[1:3], b[1:3] = b[1:3], a[1:3]
>>> print(a)
[1 6 7 4]
Expand Down

0 comments on commit a5ec46e

Please sign in to comment.