From 8cd464aeb9e5cc186cff9f53ebca793b0e688d8b Mon Sep 17 00:00:00 2001 From: manuelarte Date: Wed, 28 Jan 2026 13:26:55 +0100 Subject: [PATCH] chore: fix typo in comment (embedding) --- cmp/cmpopts/struct_filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmp/cmpopts/struct_filter.go b/cmp/cmpopts/struct_filter.go index ca11a40..f5669ab 100644 --- a/cmp/cmpopts/struct_filter.go +++ b/cmp/cmpopts/struct_filter.go @@ -165,7 +165,7 @@ func canonicalName(t reflect.Type, sel string) ([]string, error) { sf, _ := t.FieldByName(name) if !isExported(name) { // Avoid using reflect.Type.FieldByName for unexported fields due to - // buggy behavior with regard to embeddeding and unexported fields. + // buggy behavior with regard to embedding and unexported fields. // See https://golang.org/issue/4876 for details. sf = reflect.StructField{} for i := 0; i < t.NumField() && sf.Name == ""; i++ {