Fixed typos and improved clarity in documentation (#23077)

This commit is contained in:
Bob 2024-12-27 15:10:46 +01:00 committed by GitHub
parent 817557365b
commit ef7dbc9ab9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View File

@ -114,7 +114,7 @@ func (m *ListAllInterfacesResponse) GetInterfaceNames() []string {
// ListImplementationsRequest is the request type of the ListImplementations
// RPC.
type ListImplementationsRequest struct {
// interface_name defines the interface to query the implementations for.
// interface_name defines the interface to query the implementations.
InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
}
@ -300,12 +300,12 @@ type ReflectionServiceServer interface {
ListImplementations(context.Context, *ListImplementationsRequest) (*ListImplementationsResponse, error)
}
// UnimplementedReflectionServiceServer can be embedded to have forward compatible implementations.
// UnimplementedReflectionServiceServer can be embedded to have forward-compatible implementations.
type UnimplementedReflectionServiceServer struct {
}
func (*UnimplementedReflectionServiceServer) ListAllInterfaces(ctx context.Context, req *ListAllInterfacesRequest) (*ListAllInterfacesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAllInterfaces not implemented")
return nil, status.Errorf(codes.Unimplemented, "method ListAllInterfaces is not implemented")
}
func (*UnimplementedReflectionServiceServer) ListImplementations(ctx context.Context, req *ListImplementationsRequest) (*ListImplementationsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListImplementations not implemented")

View File

@ -21,7 +21,7 @@ service Msg {
}
message MsgRequest {
// u32 is an uint32
// u32 is a uint32
uint32 u32 = 1;
uint64 u64 = 2;
string str = 3;

View File

@ -181,7 +181,7 @@ func txParamsFromFlagSet(flags *pflag.FlagSet, keybase keyring2.Keyring, ac addr
fees, _ := flags.GetString(FlagFees)
feePayer, _ := flags.GetString(FlagFeePayer)
feeGrater, _ := flags.GetString(FlagFeeGranter)
feeGranter, _ := flags.GetString(FlagFeeGranter)
unordered, _ := flags.GetBool(FlagUnordered)
@ -189,7 +189,7 @@ func txParamsFromFlagSet(flags *pflag.FlagSet, keybase keyring2.Keyring, ac addr
if err != nil {
return params, err
}
feeConfig, err := NewFeeConfig(fees, feePayer, feeGrater)
feeConfig, err := NewFeeConfig(fees, feePayer, feeGranter)
if err != nil {
return params, err
}

View File

@ -1,4 +1,4 @@
// Server Defines types and interfaces which are shared between Consensus, Appmanager and Stf
// Server Defines types and interfaces which are shared between Consensus, App Manager and Stf
// This package is not meant to be used directly by modules instead if an advanced user would like
// to create a custom server or replace a component in the server they will need to use the app package.
package server

View File

@ -6,7 +6,7 @@ import (
)
// Language is a language to create the BIP 39 mnemonic in.
// Currently, only english is supported though.
// Currently, only English is supported though.
// Find a list of all supported languages in the BIP 39 spec (word lists).
type Language int