Skip to content

Commit

Permalink
[swiftlint] Fix violation: trailing_whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jawwad committed May 3, 2017
1 parent e3a4494 commit 9af41f2
Show file tree
Hide file tree
Showing 68 changed files with 926 additions and 926 deletions.
4 changes: 2 additions & 2 deletions Array2D/Array2D.playground/Contents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ public struct Array2D<T> {
public let columns: Int
public let rows: Int
fileprivate var array: [T]

public init(columns: Int, rows: Int, initialValue: T) {
self.columns = columns
self.rows = rows
array = .init(repeating: initialValue, count: rows*columns)
}

public subscript(column: Int, row: Int) -> T {
get {
precondition(column < columns, "Column \(column) Index is out of range. Array<T>(columns: \(columns), rows:\(rows))")
Expand Down
4 changes: 2 additions & 2 deletions Array2D/Array2D.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ public struct Array2D<T> {
public let columns: Int
public let rows: Int
fileprivate var array: [T]

public init(columns: Int, rows: Int, initialValue: T) {
self.columns = columns
self.rows = rows
array = .init(repeating: initialValue, count: rows*columns)
}

public subscript(column: Int, row: Int) -> T {
get {
precondition(column < columns, "Column \(column) Index is out of range. Array<T>(columns: \(columns), rows:\(rows))")
Expand Down
Loading

0 comments on commit 9af41f2

Please sign in to comment.