From 99d787ec0ecf26754604b7cd0d5e6d6acc439c29 Mon Sep 17 00:00:00 2001 From: bluewebgeek Date: Fri, 27 Jul 2018 15:22:52 +0800 Subject: [PATCH] rpc: typo and comments --- rpc/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/client.go b/rpc/client.go index fa78063c17..3982161a85 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -93,7 +93,7 @@ func (msg *jsonrpcMessage) isNotification() bool { return msg.ID == nil && msg.Method != "" } -// The message is a JSON-RPC 2.0 reponse if (1)it has a valid ID (2) empty in Mehod and Params field. +// The message is a JSON-RPC 2.0 response if (1)it has a valid ID (2) empty in Mehod and Params field. func (msg *jsonrpcMessage) isResponse() bool { return msg.hasValidID() && msg.Method == "" && len(msg.Params) == 0 } @@ -226,7 +226,7 @@ func DialStdIO(ctx context.Context) (*Client, error) { }) } -// newClient creates a new connection to a RPC server. +// newClient creates a new connection to an RPC server. func newClient(initctx context.Context, connectFunc func(context.Context) (net.Conn, error)) (*Client, error) { conn, err := connectFunc(initctx) if err != nil {