Skip to content

Commit 27300f6

Browse files
matthias314KristofferCdkarrasch
authored andcommitted
small cleanup of dict.jl (JuliaLang#41108)
* unused local variable removed, typo in comment fixed Co-authored-by: Kristoffer Carlsson <[email protected]> Co-authored-by: Daniel Karrasch <[email protected]>
1 parent 25d3d3d commit 27300f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

base/dict.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ end
303303
# and the key would be inserted at pos
304304
# This version is for use by setindex! and get!
305305
function ht_keyindex2!(h::Dict{K,V}, key) where V where K
306-
age0 = h.age
307306
sz = length(h.keys)
308307
iter = 0
309308
maxprobe = h.maxprobe
@@ -720,7 +719,7 @@ end
720719
function map!(f, iter::ValueIterator{<:Dict})
721720
dict = iter.dict
722721
vals = dict.vals
723-
# @inbounds is here so the it gets propagated to isslotfiled
722+
# @inbounds is here so that it gets propagated to isslotfilled
724723
@inbounds for i = dict.idxfloor:lastindex(vals)
725724
if isslotfilled(dict, i)
726725
vals[i] = f(vals[i])

0 commit comments

Comments
 (0)