Browse Source

rix range style per Marcin's comment

Evan Maloney 10 years ago
parent
commit
010c55ddd2
1 changed files with 1 additions and 1 deletions
  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