Skip to content

chore: fix some typos in conments #622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2024
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
Loading