Skip to content

Commit d79a076

Browse files
authored
Update README.markdown
changed enumerate() -> enumerated()
1 parent 862209b commit d79a076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Hash Table/README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The code to insert a new element or update an existing element lives in `updateV
202202
let index = self.index(forKey: key)
203203

204204
// Do we already have this key in the bucket?
205-
for (i, element) in buckets[index].enumerate() {
205+
for (i, element) in buckets[index].enumerated() {
206206
if element.key == key {
207207
let oldValue = element.value
208208
buckets[index][i].value = value

0 commit comments

Comments
 (0)