Skip to content

Commit

Permalink
Fix some typos in cel.go
Browse files Browse the repository at this point in the history
  • Loading branch information
logonoff committed Jun 14, 2024
1 parent 5d2d3fb commit c5e4ca7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/constraints/cel.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func NewCelEnvironment() *CelEnvironment {
decls.NewVar(PropertiesKey, decls.NewListType(decls.NewMapType(decls.String, decls.Any)))),
cel.Lib(semverLib{}),
)
// If an error occurs here, it means the CEL enviroment is unable to load
// configuration for custom libraries propertly. Hence, the CEL enviroment is
// If an error occurs here, it means the CEL environment is unable to load
// configuration for custom libraries properly. Hence, the CEL environment is
// unusable. Panic here will cause the program to fail immediately to prevent
// cascading failures later on when this CEL env is in use.
if err != nil {
Expand All @@ -41,7 +41,7 @@ func NewCelEnvironment() *CelEnvironment {
}
}

// CelEnvironment is a struct that encapsulates CEL custom program enviroment
// CelEnvironment is a struct that encapsulates CEL custom program environment
type CelEnvironment struct {
env *cel.Env
}
Expand Down

0 comments on commit c5e4ca7

Please sign in to comment.