1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix typos

This commit is contained in:
Darien Raymond 2018-10-14 08:02:23 +02:00
parent e3d5a1c279
commit 351316490d
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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)