Pull request 2002: fix-typo

Squashed commit of the following:

commit 29c749d1773dc7d14a2696b3dea8cf4fec2ed9fc
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Thu Sep 7 20:06:42 2023 +0300

    all: fix some typos
This commit is contained in:
Ainar Garipov 2023-09-07 20:37:24 +03:00
parent 854c89cd4d
commit acf539b11d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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