Skip to content

Commit 8a6d99a

Browse files
committed
Fix typo
Signed-off-by: bbvch13531 <[email protected]>
1 parent d89bf25 commit 8a6d99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Insertion Sort/InsertionSort.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func insertionSort<T>(_ array: [T], _ isOrderedBefore: (T, T) -> Bool) -> [T] {
2222

2323
/// Performs the Insertion sort algorithm to a given array
2424
///
25-
/// - Parameter array: the array to be sorted, conatining elements that conform to the Comparable protocol
25+
/// - Parameter array: the array to be sorted, containing elements that conform to the Comparable protocol
2626
/// - Returns: a sorted array containing the same elements
2727
func insertionSort<T: Comparable>(_ array: [T]) -> [T] {
2828
guard array.count > 1 else { return array }

0 commit comments

Comments
 (0)