diff --git a/internal/dhcpd/http_unix_test.go b/internal/dhcpd/http_unix_test.go index 2a569f4e..07dd0169 100644 --- a/internal/dhcpd/http_unix_test.go +++ b/internal/dhcpd/http_unix_test.go @@ -54,7 +54,7 @@ func TestServer_handleDHCPStatus(t *testing.T) { assert.JSONEq(t, b.String(), w.Body.String()) } - // defaultResponse is a helper that returs the response with default + // defaultResponse is a helper that returns the response with default // configuration. defaultResponse := func() *dhcpStatusResponse { conf4 := defaultV4ServerConf() diff --git a/internal/stats/unit.go b/internal/stats/unit.go index 31fc3984..60481d15 100644 --- a/internal/stats/unit.go +++ b/internal/stats/unit.go @@ -72,7 +72,7 @@ type Entry struct { Time time.Duration } -// validate returs an error if entry is not valid. +// validate returns an error if entry is not valid. func (e *Entry) validate() (err error) { switch { case e.Result == 0: @@ -295,7 +295,7 @@ func loadUnitFromDB(tx *bbolt.Tx, id uint32) (udb *unitDB) { return udb } -// deserealize assigns the appropriate values from udb to u. u must not be nil. +// deserialize assigns the appropriate values from udb to u. u must not be nil. // It's safe for concurrent use. func (u *unit) deserialize(udb *unitDB) { if udb == nil {