Skip to content

Commit 84710a3

Browse files
Andres ContrerasAndres Contreras
authored andcommitted
fix typo of minimum
1 parent 618abbf commit 84710a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/sorting/select_sort.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
function arrayToSort = select_sort(arrayToSort)
33
for i=1:length(arrayToSort)
44
%%smallest element in the unsorted list
5-
minimun_index=i;
5+
minimum_index=i;
66
for j=i+1:length(arrayToSort)
77
if (arrayToSort(j) < arrayToSort(minimun_index))
88
minimun_index=j;

0 commit comments

Comments
 (0)