Skip to content

Commit

Permalink
fix: typos (#911)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Mar 14, 2024
1 parent 7654578 commit 884dfd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cel/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ type interopCELTypeProvider struct {

// FindStructType returns a types.Type instance for the given fully-qualified typeName if one exists.
//
// This method proxies to the underyling ref.TypeProvider's FindType method and converts protobuf type
// This method proxies to the underlying ref.TypeProvider's FindType method and converts protobuf type
// into a native type representation. If the conversion fails, the type is listed as not found.
func (p *interopCELTypeProvider) FindStructType(typeName string) (*types.Type, bool) {
if et, found := p.FindType(typeName); found {
Expand All @@ -813,7 +813,7 @@ func (p *interopCELTypeProvider) FindStructFieldNames(typeName string) ([]string
// FindStructFieldType returns a types.FieldType instance for the given fully-qualified typeName and field
// name, if one exists.
//
// This method proxies to the underyling ref.TypeProvider's FindFieldType method and converts protobuf type
// This method proxies to the underlying ref.TypeProvider's FindFieldType method and converts protobuf type
// into a native type representation. If the conversion fails, the type is listed as not found.
func (p *interopCELTypeProvider) FindStructFieldType(structType, fieldName string) (*types.FieldType, bool) {
if ft, found := p.FindFieldType(structType, fieldName); found {
Expand Down
2 changes: 1 addition & 1 deletion common/ast/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ type EntryExpr interface {
// IDGenerator produces unique ids suitable for tagging expression nodes
type IDGenerator func(originalID int64) int64

// CallExpr defines an interface for inspecting a function call and its arugments.
// CallExpr defines an interface for inspecting a function call and its arguments.
type CallExpr interface {
// FunctionName returns the name of the function.
FunctionName() string
Expand Down
2 changes: 1 addition & 1 deletion ext/sets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestSets(t *testing.T) {
in: map[string]any{"x": []int64{5, 4, 3, 2, 1}},
hints: map[string]uint64{"x": 10},
// min cost is input 'x' length 0, 10 for list creation, 2 for arg costs
// max cost is input 'x' lenght 10, 10 for list creation, 2 for arg costs
// max cost is input 'x' length 10, 10 for list creation, 2 for arg costs
estimatedCost: checker.CostEstimate{Min: 12, Max: 42},
// actual cost is 'x' length 5 * list literal length 3, 10 for list creation, 2 for arg cost
actualCost: 27,
Expand Down

0 comments on commit 884dfd9

Please sign in to comment.