fix some spelling errors

parent 3f3a0a1a
......@@ -6,8 +6,8 @@ import (
"strings"
"testing"
. "gopkg.in/check.v1"
. "github.com/ipfs/go-datastore"
. "gopkg.in/check.v1"
)
// Hook up gocheck into the "go test" runner.
......
......@@ -71,7 +71,7 @@ type Query struct {
// // is not set, Size should always be set.
}
// String returns a string represenation of the Query for debugging/validation
// String returns a string representation of the Query for debugging/validation
// purposes. Do not use it for SQL queries.
func (q Query) String() string {
s := "SELECT keys"
......@@ -157,7 +157,7 @@ type Result struct {
type Results interface {
Query() Query // the query these Results correspond to
Next() <-chan Result // returns a channel to wait for the next result
NextSync() (Result, bool) // blocks and waits to return the next result, second paramter returns false when results are exhausted
NextSync() (Result, bool) // blocks and waits to return the next result, second parameter returns false when results are exhausted
Rest() ([]Entry, error) // waits till processing finishes, returns all entries at once.
Close() error // client may call Close to signal early exit
......
......@@ -36,7 +36,7 @@ func RunBatchTest(t *testing.T, ds dstore.Batching) {
}
}
// Ensure they are not in the datastore before comitting
// Ensure they are not in the datastore before committing
for _, k := range keys {
_, err := ds.Get(k)
if err == nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment