Skip to content

Commit

Permalink
Fix comment typo "numpy.array((5.6.7.8))" -> "numpy.array((5,6,7,8))"
Browse files Browse the repository at this point in the history
  • Loading branch information
kairos03 committed Jul 12, 2019
1 parent 7475911 commit 41be3ff
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 41be3ff

Please sign in to comment.