From 9c4644e0f588a628286857651340fbff84e23165 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Sat, 19 Mar 2022 13:29:11 +0000 Subject: [PATCH] tools: fix some typos Change-Id: Iaad847631b9d5ee40558fcf9d51f4dfa99600e6b GitHub-Last-Rev: 6fcb64f8d9a093e7bd949e5d28bd1176c27005c0 GitHub-Pull-Request: golang/tools#372 Reviewed-on: https://go-review.googlesource.com/c/tools/+/389595 Run-TryBot: Ian Lance Taylor Run-TryBot: Hyang-Ah Hana Kim gopls-CI: kokoro TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Trust: Hyang-Ah Hana Kim --- internal/jsonrpc2/conn.go | 2 +- internal/jsonrpc2/net.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/jsonrpc2/conn.go b/internal/jsonrpc2/conn.go index 2ab8a55..d5db1fa 100644 --- a/internal/jsonrpc2/conn.go +++ b/internal/jsonrpc2/conn.go @@ -347,7 +347,7 @@ func (c *Connection) incomingResponse(msg *Response) { } } -// manageQueue reads incoming requests, attempts to proccess them with the preempter, or queue them +// manageQueue reads incoming requests, attempts to process them with the preempter, or queue them // up for normal handling. func (c *Connection) manageQueue(ctx context.Context, preempter Preempter, fromRead <-chan *incoming, toDeliver chan<- *incoming) { defer close(toDeliver) diff --git a/internal/jsonrpc2/net.go b/internal/jsonrpc2/net.go index 76f1b7d..37689cd 100644 --- a/internal/jsonrpc2/net.go +++ b/internal/jsonrpc2/net.go @@ -21,7 +21,7 @@ type NetListenOptions struct { NetDialer net.Dialer } -// NetListener returns a new Listener that listents on a socket using the net package. +// NetListener returns a new Listener that listens on a socket using the net package. func NetListener(ctx context.Context, network, address string, options NetListenOptions) (Listener, error) { ln, err := options.NetListenConfig.Listen(ctx, network, address) if err != nil { @@ -83,7 +83,7 @@ func (n *netDialer) Dial(ctx context.Context) (io.ReadWriteCloser, error) { // NetPipeListener returns a new Listener that listens using net.Pipe. // It is only possibly to connect to it using the Dialier returned by the // Dialer method, each call to that method will generate a new pipe the other -// side of which will be returnd from the Accept call. +// side of which will be returned from the Accept call. func NetPipeListener(ctx context.Context) (Listener, error) { return &netPiper{ done: make(chan struct{}),