Skip to content

Commit cf1561f

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Shell Sort/ShellSortExample.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88

99
import Foundation
1010

11-
public func shellSort(_ list : inout [Int])
12-
{
11+
public func shellSort(_ list : inout [Int]) {
1312
var sublistCount = list.count / 2
1413

15-
while sublistCount > 0
16-
{
14+
while sublistCount > 0 {
1715
for var index in 0..<list.count {
1816

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

0 commit comments

Comments
 (0)