Skip to content

Commit 5bee3d1

Browse files
authored
Update insert-sort.go
1 parent 61f8e5a commit 5bee3d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

algorithms/sort/insert-sort.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package sort
66
func InsertSort(array []int) {
77
checkArray(array)
88
// The array is divided into two parts: sorted-part and unsorted-part.
9-
// At the beginning, sorted-part conteins the first element, and unsorted-part contains the rest.
9+
// At the beginning, sorted-part contains the first element, and unsorted-part contains the rest.
1010
for i := 1; i < len(array); i++ {
1111
// For every element in unsorted-part,
1212
for j := i; j > 0; j-- {
@@ -16,4 +16,4 @@ func InsertSort(array []int) {
1616
}
1717
}
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)