fix spelling (#551)

This commit is contained in:
anqiansong
2021-03-08 18:23:12 +08:00
committed by GitHub
parent 7ad86a52f3
commit 60c7edf8f8
13 changed files with 27 additions and 27 deletions

View File

@@ -50,7 +50,7 @@ type AtDoc struct {
Kv []*KvExpr
}
// AtHandler describes service hander ast for api syntax
// AtHandler describes service handler ast for api syntax
type AtHandler struct {
AtHandlerToken Expr
Name Expr
@@ -630,7 +630,7 @@ func (s *Service) Equal(v interface{}) bool {
return s.ServiceApi.Equal(service.ServiceApi)
}
// Get returns the tergate KV by specified key
// Get returns the target KV by specified key
func (kv KV) Get(key string) Expr {
for _, each := range kv {
if each.Key.Text() == key {