Explorar o código

rix range style per Marcin's comment

Evan Maloney %!s(int64=10) %!d(string=hai) anos
pai
achega
010c55ddd2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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