Skip to content

Commit a1a3411

Browse files
committed
Using let as variable array is not modified
1 parent 7ccb8fa commit a1a3411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Dollar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ open class Dollar {
957957
/// the last partition may less than n elements long.
958958
/// - returns: Array partitioned into n element arrays, starting step elements apart.
959959
open class func partition<T>(_ array: [T], n num: Int, step: Int? = .none, pad: [T]?) -> [[T]] {
960-
var array = array
960+
let array = array
961961
var num = num
962962
var step = step
963963
var result: [[T]] = []

0 commit comments

Comments
 (0)