Skip to content

Commit

Permalink
chore: fix some typos in conments (#622)
Browse files Browse the repository at this point in the history
Signed-off-by: needsure <[email protected]>
  • Loading branch information
needsure authored and antonmedv committed Apr 13, 2024
1 parent 3d488a9 commit 4a115c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 4a115c3

Please sign in to comment.