Skip to content

Commit 14fe787

Browse files
authored
Update ShellSortExample.swift
1 parent 7dd9de0 commit 14fe787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Shell Sort/ShellSortExample.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public func shellSort(_ list : inout [Int])
1414

1515
while sublistCount > 0
1616
{
17-
for var index in 0..<list.count{
17+
for var index in 0..<list.count {
1818

1919
guard index + sublistCount < list.count else { break }
2020

21-
if list[index] > list[index + sublistCount]{
21+
if list[index] > list[index + sublistCount] {
2222
swap(&list[index], &list[index + sublistCount])
2323
}
2424

0 commit comments

Comments
 (0)