Skip to content

Commit 538e2b5

Browse files
cmagliespeelbarrow
authored andcommitted
Fixed go-docs warnings
1 parent 1209f4d commit 538e2b5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

jsonrpc/doc.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// Copyright 2024 Cristian Maglie. All rights reserved.
3+
// Use of this source code is governed by a BSD-style
4+
// license that can be found in the LICENSE file.
5+
//
6+
7+
// Package jsonrpc is an implementation of a Language Server Protocol JSON-RPC protocol.
8+
package jsonrpc

jsonrpc/jsonrpc_connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ func (c *Connection) Close() {
236236

237237
func (c *Connection) SendRequest(ctx context.Context, method string, params json.RawMessage) (json.RawMessage, *ResponseError, error) {
238238
id := fmt.Sprintf("%d", atomic.AddUint64(&c.lastOutRequestsIndex, 1))
239-
encodedId, err := json.Marshal(id)
239+
encodedID, err := json.Marshal(id)
240240
if err != nil {
241241
// should never happen...
242242
panic("internal error creating RequestMessage")
243243
}
244244
req := RequestMessage{
245245
JSONRPC: "2.0",
246-
ID: encodedId,
246+
ID: encodedID,
247247
Method: method,
248248
Params: params,
249249
}

0 commit comments

Comments
 (0)