From c55036458eda9cef48e6eac0aa362ec02fa4cb08 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Thu, 19 Jul 2018 07:01:51 +0800 Subject: [PATCH] Fix a typo in 01_selection_sort.swift (#76) --- 02_selection_sort/swift/01_selection_sort.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_selection_sort/swift/01_selection_sort.swift b/02_selection_sort/swift/01_selection_sort.swift index be0a473..df6edc7 100644 --- a/02_selection_sort/swift/01_selection_sort.swift +++ b/02_selection_sort/swift/01_selection_sort.swift @@ -4,7 +4,7 @@ import Foundation func findSmallestIndex (_ arr: [T]) -> Int { // Stores the smallest value var smallest = arr[0] - // We don't need any calculation if the array lenght is 1 + // We don't need any calculation if the array length is 1 if arr.count == 1 { return 0 }