docs: fix function comments (#21814)
Co-authored-by: wujinbao <www.389092100@qq.com>
This commit is contained in:
parent
b8014dfe68
commit
29077c866c
@ -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 {
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user