btcjson, rpclient: Fix typo

This commit is contained in:
shuai.qi 2019-07-06 00:13:54 +08:00 committed by John C. Vernaleo
parent 318c89dfed
commit 46461dc84a
2 changed files with 3 additions and 3 deletions

View file

@ -22,10 +22,10 @@ type RPCError struct {
Message string `json:"message,omitempty"`
}
// Guarantee RPCError satisifies the builtin error interface.
// Guarantee RPCError satisfies the builtin error interface.
var _, _ error = RPCError{}, (*RPCError)(nil)
// Error returns a string describing the RPC error. This satisifies the
// Error returns a string describing the RPC error. This satisfies the
// builtin error interface.
func (e RPCError) Error() string {
return fmt.Sprintf("%d: %s", e.Code, e.Message)

View file

@ -106,7 +106,7 @@ Some of the commands are extensions specific to a particular RPC server. For
example, the DebugLevel call is an extension only provided by btcd (and
btcwallet passthrough). Therefore if you call one of these commands against
an RPC server that doesn't provide them, you will get an unimplemented error
from the server. An effort has been made to call out which commmands are
from the server. An effort has been made to call out which commands are
extensions in their documentation.
Also, it is important to realize that btcd intentionally separates the wallet