From ddb10db55cce7ecb79fce2510fe3a062c274279a Mon Sep 17 00:00:00 2001 From: ninglinLiu Date: Thu, 19 Nov 2026 08:02:01 +0800 Subject: [PATCH] docs: fix duplicated words in internal/spew comments --- internal/spew/config.go | 2 +- internal/spew/doc.go | 2 +- internal/spew/format.go | 2 +- internal/spew/internal_test.go | 2 +- internal/spew/internalunsafe_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/spew/config.go b/internal/spew/config.go index 161895fc6..78f21472b 100644 --- a/internal/spew/config.go +++ b/internal/spew/config.go @@ -228,7 +228,7 @@ types similar to the standard %v format specifier. The custom formatter only responds to the %v (most compact), %+v (adds pointer addresses), %#v (adds types), and %#+v (adds types and pointer addresses) verb -combinations. Any other verbs such as %x and %q will be sent to the the +combinations. Any other verbs such as %x and %q will be sent to the standard fmt package for formatting. In addition, the custom formatter ignores the width and precision arguments (however they will still work on the format specifiers not handled by the custom formatter). diff --git a/internal/spew/doc.go b/internal/spew/doc.go index 722e9aa79..a689c9f97 100644 --- a/internal/spew/doc.go +++ b/internal/spew/doc.go @@ -169,7 +169,7 @@ standard %v format specifier. The custom formatter only responds to the %v (most compact), %+v (adds pointer addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb -combinations. Any other verbs such as %x and %q will be sent to the the +combinations. Any other verbs such as %x and %q will be sent to the standard fmt package for formatting. In addition, the custom formatter ignores the width and precision arguments (however they will still work on the format specifiers not handled by the custom formatter). diff --git a/internal/spew/format.go b/internal/spew/format.go index b04edb7d7..b1da1cd05 100644 --- a/internal/spew/format.go +++ b/internal/spew/format.go @@ -405,7 +405,7 @@ types similar to the standard %v format specifier. The custom formatter only responds to the %v (most compact), %+v (adds pointer addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb -combinations. Any other verbs such as %x and %q will be sent to the the +combinations. Any other verbs such as %x and %q will be sent to the standard fmt package for formatting. In addition, the custom formatter ignores the width and precision arguments (however they will still work on the format specifiers not handled by the custom formatter). diff --git a/internal/spew/internal_test.go b/internal/spew/internal_test.go index e312b4fad..570fbd009 100644 --- a/internal/spew/internal_test.go +++ b/internal/spew/internal_test.go @@ -15,7 +15,7 @@ */ /* -This test file is part of the spew package rather than than the spew_test +This test file is part of the spew package rather than the spew_test package because it needs access to internals to properly test certain cases which are not possible via the public interface since they should never happen. */ diff --git a/internal/spew/internalunsafe_test.go b/internal/spew/internalunsafe_test.go index 2b547c41c..05a171408 100644 --- a/internal/spew/internalunsafe_test.go +++ b/internal/spew/internalunsafe_test.go @@ -20,7 +20,7 @@ // +build !js,!appengine,!safe,!disableunsafe,go1.4 /* -This test file is part of the spew package rather than than the spew_test +This test file is part of the spew package rather than the spew_test package because it needs access to internals to properly test certain cases which are not possible via the public interface since they should never happen. */