Review and fix. Mostly typos.
This commit is contained in:
parent
6f3bc8e57c
commit
d06c232f04
1 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ func (c *Client) DebugLevelAsync(levelSpec string) FutureDebugLevelResult {
|
|||
// DebugLevel dynamically sets the debug logging level to the passed level
|
||||
// specification.
|
||||
//
|
||||
// The levelspec can either a debug level or of the form:
|
||||
// The levelspec can be either a debug level or of the form:
|
||||
// <subsystem>=<level>,<subsystem2>=<level2>,...
|
||||
//
|
||||
// Additionally, the special keyword 'show' can be used to get a list of the
|
||||
|
@ -154,14 +154,14 @@ func (r FutureGetBestBlockResult) Receive() (*wire.ShaHash, int32, error) {
|
|||
return nil, 0, err
|
||||
}
|
||||
|
||||
// Unmarsal result as a getbestblock result object.
|
||||
// Unmarshal result as a getbestblock result object.
|
||||
var bestBlock btcjson.GetBestBlockResult
|
||||
err = json.Unmarshal(res, &bestBlock)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
|
||||
// Convert hash string.
|
||||
// Convert to hash from string.
|
||||
hash, err := wire.NewShaHashFromStr(bestBlock.Hash)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
|
@ -312,7 +312,7 @@ func (r FutureSessionResult) Receive() (*btcjson.SessionResult, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Unmarsal result as a session result object.
|
||||
// Unmarshal result as a session result object.
|
||||
var session btcjson.SessionResult
|
||||
err = json.Unmarshal(res, &session)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue