Skip to content

Commit 0869b36

Browse files
committed
Fix typo
1 parent d4b98a3 commit 0869b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygad/pygad.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def __init__(self,
387387
raise TypeError(f"The value assigned to the 'initial_population' parameter is expected to by of type list, tuple, or ndarray but {type(initial_population)} found.")
388388
elif numpy.array(initial_population).ndim != 2:
389389
self.valid_parameters = False
390-
raise ValueError(f"A 2D list is expected to the initail_population parameter but a ({numpy.array(initial_population).ndim}-D) list found.")
390+
raise ValueError(f"A 2D list is expected to the initial_population parameter but a ({numpy.array(initial_population).ndim}-D) list found.")
391391
else:
392392
# Validate the type of each value in the 'initial_population' parameter.
393393
for row_idx in range(len(initial_population)):

0 commit comments

Comments
 (0)