Skip to content

Commit

Permalink
docs: fix function comments (#21814)
Browse files Browse the repository at this point in the history
Co-authored-by: wujinbao <[email protected]>
  • Loading branch information
Wukingbow and wujinbao authored Sep 19, 2024
1 parent b8014df commit 29077c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion indexer/postgres/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion schema/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
2 changes: 1 addition & 1 deletion x/evidence/keeper/infraction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion x/upgrade/plan/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/upgrade/plan/info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 29077c8

Please sign in to comment.