Skip to content

Commit 06cdc9f

Browse files
committed
Remove use of deprecated characters property.
1 parent 8943b09 commit 06cdc9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Bloom Filter/Tests/BloomFilterTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import XCTest
66
func djb2(_ x: String) -> Int {
77
var hash = 5381
88

9-
for char in x.characters {
9+
for char in x {
1010
hash = ((hash << 5) &+ hash) &+ char.hashValue
1111
}
1212

@@ -16,7 +16,7 @@ func djb2(_ x: String) -> Int {
1616
func sdbm(_ x: String) -> Int {
1717
var hash = 0
1818

19-
for char in x.characters {
19+
for char in x {
2020
hash = char.hashValue &+ (hash << 6) &+ (hash << 16) &- hash
2121
}
2222

0 commit comments

Comments
 (0)