From 351316490d176e5e6edf95e764147ad2165289ea Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 14 Oct 2018 08:02:23 +0200 Subject: [PATCH] fix typos --- transport/internet/kcp/connection.go | 2 +- transport/internet/sockopt_linux_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/internet/kcp/connection.go b/transport/internet/kcp/connection.go index cff2ca0c2..7fd67d035 100644 --- a/transport/internet/kcp/connection.go +++ b/transport/internet/kcp/connection.go @@ -366,7 +366,7 @@ func (c *Connection) waitForDataOutput() error { func (c *Connection) Write(b []byte) (int, error) { // This involves multiple copies of the buffer. But we don't expect this method to be used often. // Only wrapped connections such as TLS and WebSocket will call into this. - // TODO: improve effeciency. + // TODO: improve efficiency. var mb buf.MultiBuffer common.Must2(mb.Write(b)) if err := c.WriteMultiBuffer(mb); err != nil { diff --git a/transport/internet/sockopt_linux_test.go b/transport/internet/sockopt_linux_test.go index 1d2cfc4ce..9c0ea6ce6 100644 --- a/transport/internet/sockopt_linux_test.go +++ b/transport/internet/sockopt_linux_test.go @@ -41,7 +41,7 @@ func TestSockOptMark(t *testing.T) { m, err := syscall.GetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_MARK) common.Must(err) if mark != m { - t.Fatal("unexpected conneciton mark", m, " want ", mark) + t.Fatal("unexpected connection mark", m, " want ", mark) } }) common.Must(err)