Skip to content

Commit 25cf643

Browse files
committed
fix: Fix to get key from for loop
1 parent ef1f6a9 commit 25cf643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hashset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (s *Set) Union(set *Set) *Set {
140140
func (s *Set) ToSlice() []interface{} {
141141
uniTypeSlice := make([]interface{}, 0)
142142
s.mu.RLock()
143-
for key := range s.hash {
143+
for key, _ := range s.hash {
144144
uniTypeSlice = append(uniTypeSlice, key)
145145
}
146146
s.mu.RUnlock()

0 commit comments

Comments
 (0)