From acf539b11d171e392011130c55ae7ab87e2dbb3c Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Thu, 7 Sep 2023 20:37:24 +0300 Subject: [PATCH] Pull request 2002: fix-typo Squashed commit of the following: commit 29c749d1773dc7d14a2696b3dea8cf4fec2ed9fc Author: Ainar Garipov Date: Thu Sep 7 20:06:42 2023 +0300 all: fix some typos --- internal/dhcpd/http_unix_test.go | 2 +- internal/stats/unit.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {