diff --git a/patcher/value/value.go b/patcher/value/value.go index 59351be6..28f52be2 100644 --- a/patcher/value/value.go +++ b/patcher/value/value.go @@ -13,9 +13,9 @@ import ( // ValueGetter is a Patcher that allows custom types to be represented as standard go values for use with expr. // It also adds the `$patcher_value_getter` function to the program for efficiently calling matching interfaces. // -// The purpose of this Patcher is to make it seemless to use custom types in expressions without the need to +// The purpose of this Patcher is to make it seamless to use custom types in expressions without the need to // first convert them to standard go values. It may also facilitate using already existing structs or maps as -// environments when they contain compatabile types. +// environments when they contain compatible types. // // An example usage may be modeling a database record with columns that have varying data types and constraints. // In such an example you may have custom types that, beyond storing a simple value, such as an integer, may diff --git a/test/operator/operator_test.go b/test/operator/operator_test.go index a19c191d..b49d91cc 100644 --- a/test/operator/operator_test.go +++ b/test/operator/operator_test.go @@ -77,7 +77,7 @@ func TestOperator_Function(t *testing.T) { } for _, tt := range tests { - t.Run(fmt.Sprintf(`opertor function helper test %s`, tt.input), func(t *testing.T) { + t.Run(fmt.Sprintf(`operator function helper test %s`, tt.input), func(t *testing.T) { program, err := expr.Compile( tt.input, expr.Env(env),