From 42284a757c29155abb91181b2cb846067c1690f9 Mon Sep 17 00:00:00 2001 From: Mustafa <30045531+Machtergreifung@users.noreply.github.com> Date: Thu, 3 Feb 2022 08:57:32 +0800 Subject: [PATCH] chore fixed (#921) * chore fixed --- common/serial/serial.go | 2 +- common/serial/string.go | 2 +- common/session/session.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/serial/serial.go b/common/serial/serial.go index 46197dc3..9d8cb4ca 100644 --- a/common/serial/serial.go +++ b/common/serial/serial.go @@ -5,7 +5,7 @@ import ( "io" ) -// ReadUint16 reads first two bytes from the reader, and then coverts them to an uint16 value. +// ReadUint16 reads first two bytes from the reader, and then converts them to an uint16 value. func ReadUint16(reader io.Reader) (uint16, error) { var b [2]byte if _, err := io.ReadFull(reader, b[:]); err != nil { diff --git a/common/serial/string.go b/common/serial/string.go index e220e543..8fdcd7f6 100644 --- a/common/serial/string.go +++ b/common/serial/string.go @@ -5,7 +5,7 @@ import ( "strings" ) -// ToString serialize an arbitrary value into string. +// ToString serializes an arbitrary value into string. func ToString(v interface{}) string { if v == nil { return "" diff --git a/common/session/session.go b/common/session/session.go index a753c59d..656a2404 100644 --- a/common/session/session.go +++ b/common/session/session.go @@ -86,7 +86,7 @@ type Sockopt struct { Mark int32 } -// SetAttribute attachs additional string attributes to content. +// SetAttribute attaches additional string attributes to content. func (c *Content) SetAttribute(name string, value string) { if c.Attributes == nil { c.Attributes = make(map[string]string)