Skip to content

Commit

Permalink
Typo fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
xllora committed Jan 8, 2017
1 parent 874e270 commit 3a20b36
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions bql/planner/data_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func addTriples(ts <-chan *triple.Triple, cls *semantic.GraphClause, tbl *table.
if err != nil {
return fmt.Errorf("failed to retrieve time anchor from time predicate in triple %s with error %v", t, err)
}
// Need to check teh bounds of the triple.
// Need to check the bounds of the triple.
if cls.PLowerBound != nil && cls.PLowerBound.After(*ta) {
continue
}
Expand All @@ -416,7 +416,7 @@ func addTriples(ts <-chan *triple.Triple, cls *semantic.GraphClause, tbl *table.
if err != nil {
return fmt.Errorf("failed to retrieve time anchor from time predicate in triple %s with error %v", t, err)
}
// Need to check teh bounds of the triple.
// Need to check the bounds of the triple.
if cls.OLowerBound != nil && cls.OLowerBound.After(*ta) {
continue
}
Expand Down
4 changes: 2 additions & 2 deletions bql/semantic/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func NewBinaryBooleanExpression(op OP, lE, rE Evaluator) (Evaluator, error) {
rE: rE,
}, nil
default:
return nil, errors.New("binary boolean expresions require the operation to be one for the follwing 'and', 'or'")
return nil, errors.New("binary boolean expressions require the operation to be one for the follwing 'and', 'or'")
}
}

Expand All @@ -235,7 +235,7 @@ func NewUnaryBooleanExpression(op OP, lE Evaluator) (Evaluator, error) {
rS: false,
}, nil
default:
return nil, errors.New("unary boolean expresions require the operation to be one for the follwing 'not'")
return nil, errors.New("unary boolean expressions require the operation to be one for the follwing 'not'")
}
}

Expand Down
2 changes: 1 addition & 1 deletion bql/semantic/semantic.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ type GraphClause struct {
OTemporal bool
}

// String returns a readable representaion of a graph clause.
// String returns a readable representation of a graph clause.
func (c *GraphClause) String() string {
b := bytes.NewBufferString("{ ")

Expand Down
4 changes: 2 additions & 2 deletions bql/semantic/semantic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestStatementAddGraph(t *testing.T) {
st.BindType(Query)
st.AddGraph("?foo")
if got, want := st.GraphNames(), []string{"?foo"}; !reflect.DeepEqual(got, want) {
t.Errorf("semantic.AddGraph returned the wrong graphs avaiable; got %v, want %v", got, want)
t.Errorf("semantic.AddGraph returned the wrong graphs available; got %v, want %v", got, want)
}
}

Expand All @@ -50,7 +50,7 @@ func TestStatementAddData(t *testing.T) {
st.BindType(Query)
st.AddData(tr)
if got, want := st.Data(), []*triple.Triple{tr}; !reflect.DeepEqual(got, want) {
t.Errorf("semantic.AddData returned the wrong data avaiable; got %v, want %v", got, want)
t.Errorf("semantic.AddData returned the wrong data available; got %v, want %v", got, want)
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/command_line_tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Add non existing triples - rg nodes=1000, size=0100000, reps=10 - 70284.21 tripl
## Command: Load

Loads all the triples stored in a file into the provided graphs.
Graph names need to be separated by commans with no whitespaces. Each triple
Graph names need to be separated by commands with no whitespaces. Each triple
needs to placed in a single line. Each triple needs to be formated so it can be
parsed as indicated in the [documetation](./temporal_graph_modeling.md).
Please, also feel free to check this [example text file](./presentations/2016/06/21/data/triples.txt)
Expand Down
2 changes: 1 addition & 1 deletion storage/memory/memory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestLimitedItemsLookupChecker(t *testing.T) {
t.Fatal(err)
}
if !c.CheckAndUpdate(ip) {
t.Errorf("The first predicate should always succeeed on bounded lookup %v", blu)
t.Errorf("The first predicate should always succeed on bounded lookup %v", blu)
}
for i := 0; i < 10; i++ {
if c.CheckAndUpdate(ip) {
Expand Down
2 changes: 1 addition & 1 deletion tools/benchmark/runtime/runtime_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestTrackDuration(t *testing.T) {
return nil
})
if d <= 0 {
t.Fatalf("TrackDuration should ahve returned a valid duration")
t.Fatalf("TrackDuration should have returned a valid duration")
}
}

Expand Down
4 changes: 2 additions & 2 deletions tools/compliance/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func (a *Assertion) runAssertion(ctx context.Context, st storage.Store, chanSize

// Run evaluates a story. Returns if the story is true or not. It will also
// return an error if something wrong happen along the way. It is worth
// mentioning that Run does not clear any data avaiable in the provided
// mentioning that Run does not clear any data available in the provided
// storage.
func (s *Story) Run(ctx context.Context, st storage.Store, b literal.Builder, chanSize int) (map[string]*AssertionOutcome, error) {
// Populate the sources.
Expand Down Expand Up @@ -147,7 +147,7 @@ type AssertionBattery struct {
Entries []*AssertionBatteryEntry
}

//AssertionBatteryEntry contains teh result of running a story.
//AssertionBatteryEntry contains the result of running a story.
type AssertionBatteryEntry struct {
Story *Story
Outcome map[string]*AssertionOutcome
Expand Down
2 changes: 1 addition & 1 deletion tools/vcli/bw/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func InitializeDriver(driverName string, drivers map[string]StoreGenerator) (sto
for k := range drivers {
ds = append(ds, k)
}
return nil, fmt.Errorf("unkown driver name %q; valid drivers [%q]", driverName, strings.Join(ds, ", "))
return nil, fmt.Errorf("unknown driver name %q; valid drivers [%q]", driverName, strings.Join(ds, ", "))
}
return f()
}
Expand Down
2 changes: 1 addition & 1 deletion tools/vcli/bw/load/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func New(store storage.Store, bulkSize, builderSize int) *command.Command {
UsageLine: "load <file_path> <graph_names_separated_by_commas>",
Short: "load triples in bulk stored in a file.",
Long: `Loads all the triples stored in a file into the provided graphs.
Graph names need to be separated by commans with no whitespaces. Each triple
Graph names need to be separated by commands with no whitespaces. Each triple
needs to placed in a single line. Each triple needs to be formated so it can be
parsed as indicated in the documetation (see https://github.com/google/badwolf).
All data in the file will be treated as triples. A line starting with # will
Expand Down
2 changes: 1 addition & 1 deletion tools/vcli/bw/repl/repl.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func runBQL(ctx context.Context, bql string, s storage.Store, chanSize int) (*ta
return res, nil
}

// planBQL attempts to create the excecution plan for the provided query against the given store.
// planBQL attempts to create the execution plan for the provided query against the given store.
func planBQL(ctx context.Context, bql string, s storage.Store, chanSize int) (planner.Executor, error) {
p, err := grammar.NewParser(grammar.SemanticBQL())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion triple/triple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestPrettyTriple(t *testing.T) {
s, p, o := getTestData(t)
tr, err := New(s, p, o)
if err != nil {
t.Fatalf("triple.New shoulds not fail to create triple wih error %v", err)
t.Fatalf("triple.New shoulds not fail to create triple with error %v", err)
}
if got, want := tr.String(), "/some/type<some id>\t\"foo\"@[]\t/some/type<some id>"; got != want {
t.Errorf("triple.String failed to return a valid prety printed string; got %s, want %s", got, err)
Expand Down

0 comments on commit 3a20b36

Please sign in to comment.