From ec6e091882dd958b91a90af87a438eaf2995acb6 Mon Sep 17 00:00:00 2001 From: Long FlyBridge Date: Sun, 1 Dec 2024 11:29:09 +0800 Subject: [PATCH] chore: fix some function names in comment (#3967) --- database/gdb/gdb_model_soft_time.go | 2 +- encoding/gjson/gjson_api_encoding.go | 4 ++-- util/grand/grand_buffer.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database/gdb/gdb_model_soft_time.go b/database/gdb/gdb_model_soft_time.go index aa6d50fea..73e155275 100644 --- a/database/gdb/gdb_model_soft_time.go +++ b/database/gdb/gdb_model_soft_time.go @@ -183,7 +183,7 @@ func (m *softTimeMaintainer) GetFieldNameAndTypeForDelete( ) } -// getSoftFieldName retrieves and returns the field name of the table for possible key. +// getSoftFieldNameAndType retrieves and returns the field name of the table for possible key. func (m *softTimeMaintainer) getSoftFieldNameAndType( ctx context.Context, schema string, table string, checkFiledNames []string, diff --git a/encoding/gjson/gjson_api_encoding.go b/encoding/gjson/gjson_api_encoding.go index 7f08f0ccc..23a0ae86f 100644 --- a/encoding/gjson/gjson_api_encoding.go +++ b/encoding/gjson/gjson_api_encoding.go @@ -207,7 +207,7 @@ func (j *Json) ToProperties() ([]byte, error) { return gproperties.Encode(j.Map()) } -// TopropertiesString properties to string +// ToPropertiesString properties to string func (j *Json) ToPropertiesString() (string, error) { b, e := j.ToProperties() return string(b), e @@ -221,7 +221,7 @@ func (j *Json) MustToProperties() []byte { return result } -// MustTopropertiesString +// MustToPropertiesString func (j *Json) MustToPropertiesString() string { return string(j.MustToProperties()) } diff --git a/util/grand/grand_buffer.go b/util/grand/grand_buffer.go index 4527c25a2..4f527babc 100644 --- a/util/grand/grand_buffer.go +++ b/util/grand/grand_buffer.go @@ -28,7 +28,7 @@ func init() { go asyncProducingRandomBufferBytesLoop() } -// asyncProducingRandomBufferBytes is a named goroutine, which uses an asynchronous goroutine +// asyncProducingRandomBufferBytesLoop is a named goroutine, which uses an asynchronous goroutine // to produce the random bytes, and a buffer chan to store the random bytes. // So it has high performance to generate random numbers. func asyncProducingRandomBufferBytesLoop() {