We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a20e3 commit c550364Copy full SHA for c550364
02_selection_sort/swift/01_selection_sort.swift
@@ -4,7 +4,7 @@ import Foundation
4
func findSmallestIndex <T: Comparable> (_ arr: [T]) -> Int {
5
// Stores the smallest value
6
var smallest = arr[0]
7
- // We don't need any calculation if the array lenght is 1
+ // We don't need any calculation if the array length is 1
8
if arr.count == 1 {
9
return 0
10
}
0 commit comments