From 46461dc84a2195ee699b1cf3997c075220db71ba Mon Sep 17 00:00:00 2001 From: "shuai.qi" Date: Sat, 6 Jul 2019 00:13:54 +0800 Subject: [PATCH] btcjson, rpclient: Fix typo --- btcjson/jsonrpc.go | 4 ++-- rpcclient/doc.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/btcjson/jsonrpc.go b/btcjson/jsonrpc.go index e99d9f42..0ead85e5 100644 --- a/btcjson/jsonrpc.go +++ b/btcjson/jsonrpc.go @@ -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) diff --git a/rpcclient/doc.go b/rpcclient/doc.go index d4bbb64d..b682ba10 100644 --- a/rpcclient/doc.go +++ b/rpcclient/doc.go @@ -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