Fix few typos. (#2962)
This commit is contained in:
parent
5a19ffb315
commit
695ec0b981
|
@ -248,7 +248,7 @@ type query struct {
|
|||
stmt Statement
|
||||
// Timer stats for the query execution.
|
||||
stats *stats.TimerGroup
|
||||
// Cancelation function for the query.
|
||||
// Cancellation function for the query.
|
||||
cancel func()
|
||||
|
||||
// The engine against which the query is executed.
|
||||
|
@ -732,7 +732,7 @@ func (ev *evaluator) Eval(expr Expr) (v model.Value, err error) {
|
|||
// eval evaluates the given expression as the given AST expression node requires.
|
||||
func (ev *evaluator) eval(expr Expr) model.Value {
|
||||
// This is the top-level evaluation method.
|
||||
// Thus, we check for timeout/cancelation here.
|
||||
// Thus, we check for timeout/cancellation here.
|
||||
if err := contextDone(ev.ctx, "expression evaluation"); err != nil {
|
||||
ev.error(err)
|
||||
}
|
||||
|
|
|
@ -190,7 +190,7 @@ func TestEngineShutdown(t *testing.T) {
|
|||
t.Fatalf("expected error on querying with canceled context but got none")
|
||||
}
|
||||
if _, ok := res2.Err.(ErrQueryCanceled); !ok {
|
||||
t.Fatalf("expected cancelation error, got %q", res2.Err)
|
||||
t.Fatalf("expected cancellation error, got %q", res2.Err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ func funcIrate(ev *evaluator, args Expressions) model.Value {
|
|||
return instantValue(ev, args[0], true)
|
||||
}
|
||||
|
||||
// === idelta(node model.ValMatric) Vector ===
|
||||
// === idelta(node model.ValMatrix) Vector ===
|
||||
func funcIdelta(ev *evaluator, args Expressions) model.Value {
|
||||
return instantValue(ev, args[0], false)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue