Fix linter issues: misspell

This commit is contained in:
Cody Soyland 2018-07-17 12:22:41 -05:00
parent 379e5daf44
commit 2635759893
5 changed files with 5 additions and 5 deletions

View file

@ -109,7 +109,7 @@ docker-test:
docker run --rm -v $(PWD):/go/src/$(CLONE_URL) -w /go/src/$(CLONE_URL) golang:$(GO_VERSION) go test -tags='$(BUILD_TAGS)' $(TESTFLAGS) ./...
metalinter:
gometalinter --vendor --disable-all --enable=gotype --enable=gotypex --enable=gofmt --enable=goimports --deadline=60s --exclude "^internal/.*\.pb\.go" ./...
gometalinter --vendor --disable-all --enable=gotype --enable=gotypex --enable=gofmt --enable=goimports --enable=misspell --deadline=60s --exclude "^internal/.*\.pb\.go" ./...
######################
# Build dependencies #

View file

@ -46,7 +46,7 @@ type AttrStore interface {
var nopStore AttrStore = nopAttrStore{}
// newNopAttrStore returns an attr store which does nothing. It returns a global
// object to avoid unecessary allocations.
// object to avoid unnecessary allocations.
func newNopAttrStore(string) AttrStore { return nopStore }
// nopAttrStore represents a no-op implementation of the AttrStore interface.

View file

@ -5,7 +5,7 @@ import (
"io"
)
// Bit represents the intersection of a row and a column. It can be specifed by
// Bit represents the intersection of a row and a column. It can be specified by
// integer ids or string keys.
type Bit struct {
RowID uint64

View file

@ -494,7 +494,7 @@ func (t *tree) overflow(p *x, q *d, pi, i int, k uint64, v *roaring.Container) {
// data items up to the index of the new data item.
if l != nil && l.c < 2*kd && i != 0 {
s := (2*kd-l.c)/2 + 1 // half plus one
//s := 2*kd - l.c // all avaiable
//s := 2*kd - l.c // all available
if i < s {
s = i
}

View file

@ -25,7 +25,7 @@ type Cache struct {
// an item is evicted. Zero means no limit.
maxEntries int
// OnEvicted optionally specificies a callback function to be
// OnEvicted optionally specifies a callback function to be
// executed when an entry is purged from the cache.
OnEvicted func(key Key, value interface{})