net/{packet,tstun}: fix typo in test helper docs
Change-Id: Ifc1684fe77c7d2585e049e0dfd7340910c47a67a Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
c1a2e2c380
commit
6d85a94767
|
@ -445,7 +445,7 @@ func TestParsedString(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// mustHexDecode is like hex.DecodeString, but panics on error
|
// mustHexDecode is like hex.DecodeString, but panics on error
|
||||||
// and ignores whitespcae in s.
|
// and ignores whitespace in s.
|
||||||
func mustHexDecode(s string) []byte {
|
func mustHexDecode(s string) []byte {
|
||||||
return must.Get(hex.DecodeString(strings.Map(func(r rune) rune {
|
return must.Get(hex.DecodeString(strings.Map(func(r rune) rune {
|
||||||
if unicode.IsSpace(r) {
|
if unicode.IsSpace(r) {
|
||||||
|
|
|
@ -297,7 +297,7 @@ func TestWriteAndInject(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// mustHexDecode is like hex.DecodeString, but panics on error
|
// mustHexDecode is like hex.DecodeString, but panics on error
|
||||||
// and ignores whitespcae in s.
|
// and ignores whitespace in s.
|
||||||
func mustHexDecode(s string) []byte {
|
func mustHexDecode(s string) []byte {
|
||||||
return must.Get(hex.DecodeString(strings.Map(func(r rune) rune {
|
return must.Get(hex.DecodeString(strings.Map(func(r rune) rune {
|
||||||
if unicode.IsSpace(r) {
|
if unicode.IsSpace(r) {
|
||||||
|
|
Loading…
Reference in New Issue