docs: fix function comments (#21814)

Co-authored-by: wujinbao <www.389092100@qq.com>
This commit is contained in:
Wukingbow 2024-09-19 14:53:08 +08:00 committed by GitHub
parent b8014dfe68
commit 29077c866c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ import (
"cosmossdk.io/schema"
)
// Count returns the number of rows in the table.
// count returns the number of rows in the table.
func (tm *objectIndexer) count(ctx context.Context, conn dbConn) (int, error) {
sqlStr := fmt.Sprintf("SELECT COUNT(*) FROM %q;", tm.tableName())
if tm.options.logger != nil {

View File

@ -18,7 +18,7 @@ type Type interface {
type ReferenceType interface {
Type
// IsReferenceType is implemented if this is a reference type.
// isReferenceType is implemented if this is a reference type.
isReferenceType()
}

View File

@ -10,7 +10,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
// HandleEquivocationEvidence implements an equivocation evidence handler. Assuming the
// handleEquivocationEvidence implements an equivocation evidence handler. Assuming the
// evidence is valid, the validator committing the misbehavior will be slashed,
// jailed and tombstoned. Once tombstoned, the validator will not be able to
// recover. Note, the evidence contains the block time and height at the time of

View File

@ -96,7 +96,7 @@ func (z TestZip) SaveAs(path string) error {
return zipper.Close()
}
// saveTestZip saves a TestZip in this test's Home/src directory with the given name.
// saveSrcTestZip saves a TestZip in this test's Home/src directory with the given name.
// The full path to the saved archive is returned.
func (s *DownloaderTestSuite) saveSrcTestZip(name string, z TestZip) string {
fullName := filepath.Join(s.Home, "src", name)

View File

@ -24,7 +24,7 @@ func TestInfoTestSuite(t *testing.T) {
suite.Run(t, new(InfoTestSuite))
}
// saveSrcTestFile saves a TestFile in this test's Home/src directory.
// saveTestFile saves a TestFile in this test's Home/src directory.
// The full path to the saved file is returned.
func (s *InfoTestSuite) saveTestFile(f *TestFile) string {
fullName, err := f.SaveIn(s.Home)