Skip to content

Commit d9b1093

Browse files
authored
chore: fix some typos in conments (#622)
Signed-off-by: needsure <[email protected]>
1 parent 0b2a086 commit d9b1093

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

patcher/value/value.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313
// ValueGetter is a Patcher that allows custom types to be represented as standard go values for use with expr.
1414
// It also adds the `$patcher_value_getter` function to the program for efficiently calling matching interfaces.
1515
//
16-
// The purpose of this Patcher is to make it seemless to use custom types in expressions without the need to
16+
// The purpose of this Patcher is to make it seamless to use custom types in expressions without the need to
1717
// first convert them to standard go values. It may also facilitate using already existing structs or maps as
18-
// environments when they contain compatabile types.
18+
// environments when they contain compatible types.
1919
//
2020
// An example usage may be modeling a database record with columns that have varying data types and constraints.
2121
// In such an example you may have custom types that, beyond storing a simple value, such as an integer, may

test/operator/operator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func TestOperator_Function(t *testing.T) {
7777
}
7878

7979
for _, tt := range tests {
80-
t.Run(fmt.Sprintf(`opertor function helper test %s`, tt.input), func(t *testing.T) {
80+
t.Run(fmt.Sprintf(`operator function helper test %s`, tt.input), func(t *testing.T) {
8181
program, err := expr.Compile(
8282
tt.input,
8383
expr.Env(env),

0 commit comments

Comments
 (0)