Skip to content

Commit

Permalink
[foreach/hash] Swap key/value order
Browse files Browse the repository at this point in the history
Signed-off-by: Flipez <code@brauser.io>
  • Loading branch information
Flipez committed Oct 27, 2022
1 parent 4878cbd commit 507dda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (h *hashIterator) Next() (Object, Object, bool) {
if h.index < len(h.pairs) {
pair := h.pairs[h.index]
h.index++
return pair.Key, pair.Value, true
return pair.Value, pair.Key, true
}
return nil, NewInteger(0), false
}

0 comments on commit 507dda1

Please sign in to comment.