btcjson, rpclient: Fix typo
This commit is contained in:
parent
318c89dfed
commit
46461dc84a
2 changed files with 3 additions and 3 deletions
|
@ -22,10 +22,10 @@ type RPCError struct {
|
||||||
Message string `json:"message,omitempty"`
|
Message string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Guarantee RPCError satisifies the builtin error interface.
|
// Guarantee RPCError satisfies the builtin error interface.
|
||||||
var _, _ error = RPCError{}, (*RPCError)(nil)
|
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.
|
// builtin error interface.
|
||||||
func (e RPCError) Error() string {
|
func (e RPCError) Error() string {
|
||||||
return fmt.Sprintf("%d: %s", e.Code, e.Message)
|
return fmt.Sprintf("%d: %s", e.Code, e.Message)
|
||||||
|
|
|
@ -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
|
example, the DebugLevel call is an extension only provided by btcd (and
|
||||||
btcwallet passthrough). Therefore if you call one of these commands against
|
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
|
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.
|
extensions in their documentation.
|
||||||
|
|
||||||
Also, it is important to realize that btcd intentionally separates the wallet
|
Also, it is important to realize that btcd intentionally separates the wallet
|
||||||
|
|
Loading…
Reference in a new issue