Fixed comment.
This commit is contained in:
@ -83,8 +83,7 @@ class Chromosome:
|
|||||||
|
|
||||||
|
|
||||||
def index_of(self, searched_gene):
|
def index_of(self, searched_gene):
|
||||||
"""Returns the index of the gene in the current chromosome.
|
"""Returns the index of the gene in the current chromosome."""
|
||||||
Returns -1 if no index found."""
|
|
||||||
|
|
||||||
return self.gene_list.index(searched_gene)
|
return self.gene_list.index(searched_gene)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user