From 87f799435336b4e21a8d6346f8401ec9747b034a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=BB=AA=E7=86=99?= <137764712+thirdkeyword@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:15:29 +0800 Subject: [PATCH] chore: fix some problematic function names in comment (#22690) Signed-off-by: thirdkeyword --- types/config.go | 2 +- types/context.go | 2 +- x/upgrade/plan/downloader_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/config.go b/types/config.go index 90008fb851..cfbea500ba 100644 --- a/types/config.go +++ b/types/config.go @@ -34,7 +34,7 @@ var ( initConfig sync.Once ) -// New returns a new Config with default values. +// NewConfig returns a new Config with default values. func NewConfig() *Config { return &Config{ sealedch: make(chan struct{}), diff --git a/types/context.go b/types/context.go index ae93cbd997..6547dcb44a 100644 --- a/types/context.go +++ b/types/context.go @@ -251,7 +251,7 @@ func (c Context) WithIsCheckTx(isCheckTx bool) Context { return c } -// WithIsRecheckTx called with true will also set true on checkTx in order to +// WithIsReCheckTx called with true will also set true on checkTx in order to // enforce the invariant that if recheckTx = true then checkTx = true as well. func (c Context) WithIsReCheckTx(isRecheckTx bool) Context { if isRecheckTx { diff --git a/x/upgrade/plan/downloader_test.go b/x/upgrade/plan/downloader_test.go index 863c231eea..b55c17c2d7 100644 --- a/x/upgrade/plan/downloader_test.go +++ b/x/upgrade/plan/downloader_test.go @@ -133,7 +133,7 @@ func requireFileEquals(t *testing.T, path string, tf *TestFile) { require.Equal(t, string(tf.Contents), string(file), "file contents") } -// makeFileUrl converts the given path to a URL with the correct checksum query parameter. +// makeFileURL converts the given path to a URL with the correct checksum query parameter. func makeFileURL(t *testing.T, path string) string { t.Helper() f, err := os.Open(path)