From d6d49f2815b660328a5f78a1c4899f85cc40b993 Mon Sep 17 00:00:00 2001 From: bayashi <42190+bayashi@users.noreply.github.com> Date: Fri, 17 Jan 2025 23:23:37 +0000 Subject: [PATCH] doc --- assert_cmp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assert_cmp.go b/assert_cmp.go index 4fca704..1fcc279 100644 --- a/assert_cmp.go +++ b/assert_cmp.go @@ -48,7 +48,7 @@ func (a *testingA) CmpProto(t *testing.T, testNames ...string) *testingA { return a } -// CmpAllowUnexported method gets the differences between two objects by go-cmp.Diff with cmp.AllowUnexported option. +// CmpAllowUnexported method gets the differences between two structs by go-cmp.Diff with cmp.AllowUnexported option. // It accepts unexported methods to compare instead panic. If you would like to ignore unexported methods, // then you can use CmpIgnoreUnexported method. func (a *testingA) CmpAllowUnexported(t *testing.T, testNames ...string) *testingA { @@ -75,8 +75,8 @@ func (a *testingA) CmpAllowUnexported(t *testing.T, testNames ...string) *testin return a } -// CmpIgnoreUnexported method gets the differences between two objects by go-cmp.Diff with cmpopts.IgnoreUnexported option. -// It ignores unexported methods to compare structs instead panic. If you would like to compare also unexported methods, +// CmpIgnoreUnexported method gets the differences between two structs by go-cmp.Diff with cmpopts.IgnoreUnexported option. +// It ignores unexported methods to compare instead panic. If you would like to compare with also unexported methods, // then you can use CmpAllowUnexported method. func (a *testingA) CmpIgnoreUnexported(t *testing.T, testNames ...string) *testingA { invalidCallForSame(a)