diff --git a/doc.go b/doc.go index f79f82eb..3917a7db 100644 --- a/doc.go +++ b/doc.go @@ -141,7 +141,7 @@ the type can vary, but usually will be best handled by simply showing/logging it. The third category of errors, that is errors returned by the server, can be -detected by type asserting the error is a *btcjson.Error. For example, to +detected by type asserting the error in a *btcjson.Error. For example, to detect if a command is unimplemented by the remote RPC server: amount, err := client.GetBalance("") diff --git a/infrastructure.go b/infrastructure.go index fd007113..f8ab2695 100644 --- a/infrastructure.go +++ b/infrastructure.go @@ -1016,7 +1016,7 @@ func dial(config *ConnConfig) (*websocket.Conn, error) { return wsConn, nil } -// New create a new RPC client based on the provided connection configuration +// New creates a new RPC client based on the provided connection configuration // details. The notification handlers parameter may be nil if you are not // interested in receiving notifications and will be ignored when if the // configuration is set to run in HTTP POST mode. diff --git a/wallet.go b/wallet.go index 4fe020c9..5a47cca3 100644 --- a/wallet.go +++ b/wallet.go @@ -600,7 +600,7 @@ func (c *Client) SendFromCommentAsync(fromAccount string, return c.sendCmd(cmd) } -// SendFromMinConf sends the passed amount to the given address using the +// SendFromComment sends the passed amount to the given address using the // provided account as a source of funds and stores the provided comment and // comment to in the wallet. The comment parameter is intended to be used for // the purpose of the transaction while the commentTo parameter is indended to