chore(docs): fix functions and struct comments (#21010)

This commit is contained in:
winniehere 2024-07-22 15:35:43 +08:00 committed by GitHub
parent f9f2ad7fa9
commit 331eaf42f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -2113,7 +2113,7 @@ func (*StatusRequest) Descriptor() ([]byte, []int) {
return file_cosmos_base_node_v1beta1_query_proto_rawDescGZIP(), []int{2}
}
// StateResponse defines the response structure for the status of a node.
// StatusResponse defines the response structure for the status of a node.
type StatusResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache

View File

@ -176,7 +176,7 @@ func (m *StatusRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
// StateResponse defines the response structure for the status of a node.
// StatusResponse defines the response structure for the status of a node.
type StatusResponse struct {
EarliestStoreHeight uint64 `protobuf:"varint,1,opt,name=earliest_store_height,json=earliestStoreHeight,proto3" json:"earliest_store_height,omitempty"`
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`

View File

@ -33,7 +33,7 @@ message ConfigResponse {
// StatusRequest defines the request structure for the status of a node.
message StatusRequest {}
// StateResponse defines the response structure for the status of a node.
// StatusResponse defines the response structure for the status of a node.
message StatusResponse {
uint64 earliest_store_height = 1; // earliest block height available in the store
uint64 height = 2; // current block height

View File

@ -137,7 +137,7 @@ func Example() {
// Output: 10000
}
// ExampleOneModule shows how to use the integration test framework to test the integration of a single module.
// Example_oneModule shows how to use the integration test framework to test the integration of a single module.
// That module has no dependency on other modules.
func Example_oneModule() {
// in this example we are testing the integration of the auth module:

View File

@ -464,7 +464,7 @@ func NewValidateSigCountDecorator(ak AccountKeeper) ValidateSigCountDecorator {
}
}
// AnteHandler implements an ante decorator for ValidateSigCountDecorator
// AnteHandle implements an ante decorator for ValidateSigCountDecorator
func (vscd ValidateSigCountDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, _ bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
if err := vscd.ValidateTx(ctx, tx); err != nil {
return ctx, err