Skip to content

Commit 4e83bac

Browse files
committed
Fix tests
1 parent 1365b38 commit 4e83bac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ordered_robin_dict.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ OrderedRobinDict{String,Int64} with 4 entries:
212212
get!(collection, key, default)
213213

214214
function get!(h::OrderedRobinDict{K,V}, key0, default) where {K,V}
215-
index = get(h.dict, key, -2)
215+
index = get(h.dict, key0, -2)
216216
index > 0 && return h.vals[index]
217217
v = convert(V, default)
218-
setindex!(h, v, key)
218+
setindex!(h, v, key0)
219219
return v
220220
end
221221

@@ -236,10 +236,10 @@ end
236236
get!(f::Function, collection, key)
237237

238238
function get!(default::Base.Callable, h::OrderedRobinDict{K,V}, key0) where {K,V}
239-
index = get(h.dict, key, -2)
239+
index = get(h.dict, key0, -2)
240240
index > 0 && return @inbounds h.vals[index]
241241
v = convert(V, default())
242-
setindex!(h, v, key)
242+
setindex!(h, v, key0)
243243
return v
244244
end
245245

0 commit comments

Comments
 (0)