Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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