From 5e3d5a2e7d97cc6be84d181cbbee4d319853a940 Mon Sep 17 00:00:00 2001 From: Simon Waldherr Date: Sun, 14 Jul 2024 09:07:58 +0200 Subject: [PATCH] Fix typos (#686) --- internal/spew/internalunsafe_test.go | 2 +- test/operator/operator_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/spew/internalunsafe_test.go b/internal/spew/internalunsafe_test.go index 2b547c41..aa8fa00b 100644 --- a/internal/spew/internalunsafe_test.go +++ b/internal/spew/internalunsafe_test.go @@ -47,7 +47,7 @@ func changeKind(v *reflect.Value, readOnly bool) { *flags |= flagKindMask } -// TestAddedReflectValue tests functionaly of the dump and formatter code which +// TestAddedReflectValue tests functionality of the dump and formatter code which // falls back to the standard fmt library for new types that might get added to // the language. func TestAddedReflectValue(t *testing.T) { diff --git a/test/operator/operator_test.go b/test/operator/operator_test.go index 2ebb176f..ec7da872 100644 --- a/test/operator/operator_test.go +++ b/test/operator/operator_test.go @@ -148,7 +148,7 @@ func TestOperator_FunctionOverTypesPrecedence(t *testing.T) { expr.Env(env), expr.Operator("+", "Add"), expr.Function("Add", func(args ...interface{}) (interface{}, error) { - // Wierd function that returns 100 + a + b in testing purposes. + // Weird function that returns 100 + a + b for testing purposes. return args[0].(int) + args[1].(int) + 100, nil }, new(func(_ int, __ int) int),