瀏覽代碼

rix range style per Marcin's comment

Evan Maloney 9 年之前
父節點
當前提交
010c55ddd2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/CryptoSwift/Array+Extension.swift

+ 1 - 1
Sources/CryptoSwift/Array+Extension.swift

@@ -12,7 +12,7 @@ extension Array {
     func chunks(chunksize:Int) -> [Array<Element>] {
         var words = [[Element]]()
         words.reserveCapacity(self.count / chunksize)        
-        for var idx in chunksize ... self.count {
+        for var idx in chunksize...self.count {
             let word = Array(self[idx - chunksize..<idx]) // this is slow for large table
             words.append(word)
             idx = idx + chunksize