We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d89bf25 commit 8a6d99aCopy full SHA for 8a6d99a
Insertion Sort/InsertionSort.swift
@@ -22,7 +22,7 @@ func insertionSort<T>(_ array: [T], _ isOrderedBefore: (T, T) -> Bool) -> [T] {
22
23
/// Performs the Insertion sort algorithm to a given array
24
///
25
-/// - Parameter array: the array to be sorted, conatining elements that conform to the Comparable protocol
+/// - Parameter array: the array to be sorted, containing elements that conform to the Comparable protocol
26
/// - Returns: a sorted array containing the same elements
27
func insertionSort<T: Comparable>(_ array: [T]) -> [T] {
28
guard array.count > 1 else { return array }
0 commit comments