Skip to content

Commit

Permalink
Have consistent spacing for type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Zentrik committed Feb 2, 2024
1 parent 81a5c14 commit 3df66ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/iddict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ function sizehint!(d::IdDict, newsz)
rehash!(d, newsz)
end

function ht_keyindex!(d::IdDict{K, V}, @nospecialize(key)) where {K, V}
function ht_keyindex!(d::IdDict{K,V}, @nospecialize(key)) where {K, V}
!isa(key, K) && throw(KeyTypeError(K, key))
keyindex = ccall(:jl_eqtable_keyindex, Cssize_t, (Any, Any), d, key)
# keyindex - where a key is stored, or -pos if the key was not present and was inserted at pos

return abs(keyindex), keyindex < 0
end

function _setindex!(d::IdDict{K, V}, val::V, key::K, keyindex::Int, inserted::Bool) where {K, V}
function _setindex!(d::IdDict{K,V}, val::V, key::K, keyindex::Int, inserted::Bool) where {K, V}
@inbounds d.ht[keyindex+1] = val
d.count += inserted

Expand Down

0 comments on commit 3df66ee

Please sign in to comment.