Skip to content

Commit b2f50be

Browse files
authored
Merge pull request kodecocodes#456 from jawwad/swiftlint-fixes
Swiftlint fixes
2 parents ad5d7b5 + b718f04 commit b2f50be

File tree

81 files changed

+1023
-1057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1023
-1057
lines changed

Array2D/Array2D.playground/Contents.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ public struct Array2D<T> {
77
public let columns: Int
88
public let rows: Int
99
fileprivate var array: [T]
10-
10+
1111
public init(columns: Int, rows: Int, initialValue: T) {
1212
self.columns = columns
1313
self.rows = rows
1414
array = .init(repeating: initialValue, count: rows*columns)
1515
}
16-
16+
1717
public subscript(column: Int, row: Int) -> T {
1818
get {
1919
precondition(column < columns, "Column \(column) Index is out of range. Array<T>(columns: \(columns), rows:\(rows))")

Array2D/Array2D.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ public struct Array2D<T> {
77
public let columns: Int
88
public let rows: Int
99
fileprivate var array: [T]
10-
10+
1111
public init(columns: Int, rows: Int, initialValue: T) {
1212
self.columns = columns
1313
self.rows = rows
1414
array = .init(repeating: initialValue, count: rows*columns)
1515
}
16-
16+
1717
public subscript(column: Int, row: Int) -> T {
1818
get {
1919
precondition(column < columns, "Column \(column) Index is out of range. Array<T>(columns: \(columns), rows:\(rows))")

0 commit comments

Comments
 (0)