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

chore: make function comment match function names #2382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 rpc/client/dcrwallet/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ func (c *Client) FundRawTransaction(ctx context.Context, rawhex string, fundAcco
return res, err
}

// GetInfoWallet calls the getinfo method. It is named differently to avoid a
// GetInfo calls the getinfo method. It is named differently to avoid a
// naming clash for dcrd clients with a GetInfo method.
func (c *Client) GetInfo(ctx context.Context) (*types.InfoWalletResult, error) {
res := new(types.InfoWalletResult)
Expand Down
4 changes: 2 additions & 2 deletions rpc/jsonrpc/types/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ type SendToTreasuryCmd struct {
Amount float64
}

// NewSendToTreasurymd returns a new instance which can be used to issue a
// NewSendToTreasuryCmd returns a new instance which can be used to issue a
// sendtotreasury JSON-RPC command.
func NewSendToTreasuryCmd(amount float64, comment, commentTo *string) *SendToTreasuryCmd {
return &SendToTreasuryCmd{
Expand All @@ -893,7 +893,7 @@ type SendFromTreasuryCmd struct {
Amounts map[string]float64
}

// NewSendFromTreasurymd returns a new instance which can be used to issue a
// NewSendFromTreasuryCmd returns a new instance which can be used to issue a
// sendfromtreasury JSON-RPC command.
func NewSendFromTreasuryCmd(pubkey string, amounts map[string]float64) *SendFromTreasuryCmd {
return &SendFromTreasuryCmd{
Expand Down