diff --git a/net/packet/packet_test.go b/net/packet/packet_test.go index fadbf97ab..dfce06610 100644 --- a/net/packet/packet_test.go +++ b/net/packet/packet_test.go @@ -445,7 +445,7 @@ func TestParsedString(t *testing.T) { } // mustHexDecode is like hex.DecodeString, but panics on error -// and ignores whitespcae in s. +// and ignores whitespace in s. func mustHexDecode(s string) []byte { return must.Get(hex.DecodeString(strings.Map(func(r rune) rune { if unicode.IsSpace(r) { diff --git a/net/tstun/wrap_test.go b/net/tstun/wrap_test.go index 41b8be32b..86fbd6078 100644 --- a/net/tstun/wrap_test.go +++ b/net/tstun/wrap_test.go @@ -297,7 +297,7 @@ func TestWriteAndInject(t *testing.T) { } // mustHexDecode is like hex.DecodeString, but panics on error -// and ignores whitespcae in s. +// and ignores whitespace in s. func mustHexDecode(s string) []byte { return must.Get(hex.DecodeString(strings.Map(func(r rune) rune { if unicode.IsSpace(r) {