Skip to content

Commit c550364

Browse files
felixonmarsegonSchiele
authored andcommitted
Fix a typo in 01_selection_sort.swift (egonSchiele#76)
1 parent 68a20e3 commit c550364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02_selection_sort/swift/01_selection_sort.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Foundation
44
func findSmallestIndex <T: Comparable> (_ arr: [T]) -> Int {
55
// Stores the smallest value
66
var smallest = arr[0]
7-
// We don't need any calculation if the array lenght is 1
7+
// We don't need any calculation if the array length is 1
88
if arr.count == 1 {
99
return 0
1010
}

0 commit comments

Comments
 (0)