diff --git a/ctl/import_test.go b/ctl/import_test.go index 5979bdbee..254c21a05 100644 --- a/ctl/import_test.go +++ b/ctl/import_test.go @@ -85,7 +85,7 @@ func TestImportCommand_Run(t *testing.T) { } } -// Ensure that the ImportValue path runs (note: we have specifed a value +// Ensure that the ImportValue path runs (note: we have specified a value // for cm.Field. Because the handler doesn't return errors (it sends them // to the logger), we don't get an error returned at `cm.Run()` even though // we haven't setup frame `f` to be RangeEnabled. diff --git a/executor.go b/executor.go index d12aeff1f..9e831c9f0 100644 --- a/executor.go +++ b/executor.go @@ -801,7 +801,7 @@ func (e *Executor) executeFieldRangeSlice(ctx context.Context, index string, c * return NewBitmap(), nil } - // LT[E] and GT[E] should return all not-null if selected range fully encompases valid field range. + // LT[E] and GT[E] should return all not-null if selected range fully encompasses valid field range. if (cond.Op == pql.LT && value > field.Max) || (cond.Op == pql.LTE && value >= field.Max) || (cond.Op == pql.GT && value < field.Min) || (cond.Op == pql.GTE && value <= field.Min) { return frag.FieldNotNull(field.BitDepth()) diff --git a/fragment_test.go b/fragment_test.go index 8a54d3b07..c08b20a21 100644 --- a/fragment_test.go +++ b/fragment_test.go @@ -163,7 +163,7 @@ func TestFragment_SetFieldValue(t *testing.T) { t.Fatal("expected change") } - // Non-existant value. + // Non-existent value. if value, exists, err := f.FieldValue(100, 11); err != nil { t.Fatal(err) } else if value != 0 { diff --git a/gossip/gossip.go b/gossip/gossip.go index 3afdabe31..5a6233a94 100644 --- a/gossip/gossip.go +++ b/gossip/gossip.go @@ -135,7 +135,7 @@ type gossipConfig struct { // newTransport returns a NetTransport based on the memberlist configuration. // It will dynamically bind to a port if conf.BindPort is 0. -// This is useful for test cases where specifiying a port is not reasonable. +// This is useful for test cases where specifying a port is not reasonable. func newTransport(conf *memberlist.Config) (*memberlist.NetTransport, error) { if conf.LogOutput != nil && conf.Logger != nil { return nil, fmt.Errorf("Cannot specify both LogOutput and Logger. Please choose a single log configuration setting.") diff --git a/handler.go b/handler.go index ae04625a6..ca2e6a4ef 100644 --- a/handler.go +++ b/handler.go @@ -995,7 +995,7 @@ func (h *Handler) handleDeleteView(w http.ResponseWriter, r *http.Request) { // Delete the view. if err := f.DeleteView(viewName); err != nil { - // Ingore this error becuase views do not exist on all nodes due to slice distribution. + // Ingore this error because views do not exist on all nodes due to slice distribution. if err != ErrInvalidView { http.Error(w, err.Error(), http.StatusBadRequest) return diff --git a/roaring/roaring.go b/roaring/roaring.go index 3cc537a08..8fb906ef4 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -2645,7 +2645,7 @@ func differenceRunRun(a, b *container) *container { for apos < alen && bpos < blen { switch { case alast < bstart: - // current A-run entirely preceeds current B-run: keep full A-run, advance to next A-run + // current A-run entirely precedes current B-run: keep full A-run, advance to next A-run output.runs = append(output.runs, interval16{start: astart, last: alast}) apos++ if apos < alen { @@ -2653,7 +2653,7 @@ func differenceRunRun(a, b *container) *container { alast = a.runs[apos].last } case blast < astart: - // current B-run entirely preceeds current A-run: advance to next B-run + // current B-run entirely precedes current A-run: advance to next B-run bpos++ if bpos < blen { bstart = b.runs[bpos].start diff --git a/roaring/roaring_test.go b/roaring/roaring_test.go index 6378ee67f..7c5539b34 100644 --- a/roaring/roaring_test.go +++ b/roaring/roaring_test.go @@ -291,7 +291,7 @@ func TestBitmap_Max(t *testing.T) { } } -// Ensure CountRange is correct even if rangekey is prior to inital container. +// Ensure CountRange is correct even if rangekey is prior to initial container. func TestBitmap_BitmapCountRangeEdgeCase(t *testing.T) { s := uint64(2009 * 1048576) e := uint64(2010 * 1048576) diff --git a/statsd/statsd.go b/statsd/statsd.go index d46dd637f..c7c072ae3 100644 --- a/statsd/statsd.go +++ b/statsd/statsd.go @@ -24,7 +24,7 @@ import ( "github.com/pilosa/pilosa" ) -// StatsD protocal wrapper using the DataDog library that added Tags to the StatsD protocal +// StatsD protocol wrapper using the DataDog library that added Tags to the StatsD protocol // statsD defailt host is "127.0.0.1:8125" const (