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 patcher/value/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/operator/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down