Skip to content

Commit

Permalink
apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
hidetatz committed Jul 30, 2023
1 parent aea9a25 commit cc55f9e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
// dict is an ordered dictionary implementation.
// In shiba dict is always ordered.
type dict struct {
kv map[objkey]*obj // objkey to value
kk map[objkey]*obj // objkey to key
keys *list.List // objkey list
ke map[objkey]*list.Element // objkey to list element. this is needed to delete in O(1)
kv map[objkey]*obj // objkey to value
kk map[objkey]*obj // objkey to key
keys *list.List // objkey list
ke map[objkey]*list.Element // objkey to list element. this is needed to delete in O(1)
}

func newdict() *dict {
Expand Down
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (e *errInvalidUnaryOp) Error() string {
}

type errDictKeyNotFound struct {
l *loc
l *loc
key *obj
}

Expand Down
2 changes: 1 addition & 1 deletion iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (i *dictIterator) hasnext() bool {

func (i *dictIterator) next() (*obj, int) {
retkey := i.e.Value.(objkey) // this is objkey(string)
retk := i.d.kk[retkey] // extract key obj by objkey
retk := i.d.kk[retkey] // extract key obj by objkey
retidx := i.i
i.e = i.e.Next()
i.i++
Expand Down
2 changes: 1 addition & 1 deletion obj.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type obj struct {
bfnbody func(objs ...*obj) (*obj, error)

// func
fmod *module
fmod *module
params []string
body []node
}
Expand Down

0 comments on commit cc55f9e

Please sign in to comment.