Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix function comments #21814

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading