Skip to content

Commit 5d81232

Browse files
author
Luka Bratos
committed
Update for Swift 4.0
Using `characters` is not needed anymore in Swift 4.0
1 parent 82aff9d commit 5d81232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CryptoSwiftHMACModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ internal extension CSArrayType where Iterator.Element == UInt8 {
229229
internal func toHexString() -> String {
230230
return self.lazy.reduce("") {
231231
var s = String($1, radix: 16)
232-
if s.characters.count == 1 {
232+
if s.count == 1 {
233233
s = "0" + s
234234
}
235235
return $0 + s

0 commit comments

Comments
 (0)