Skip to content

Commit

Permalink
netutil: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Feb 11, 2022
1 parent 917a851 commit 35899cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netutil/reversed_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func ExampleSubnetFromReversedAddr() {
// abcd:1230::/28
}

func ExampleSubnetFromReversedAddr_domain_only() {
func ExampleSubnetFromReversedAddr_domainOnly() {
a := `in-addr.arpa`
_, err := netutil.SubnetFromReversedAddr(a)

Expand Down
4 changes: 2 additions & 2 deletions netutil/reversed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ func TestSubnetFromReversedAddr(t *testing.T) {
in: `0.0.0.` + ipv4NetRevGood,
name: "good_ipv4_single_addr_leading_zero",
}, {
want: newIPNet(testIPv4ZeroTail, 8*2),
want: newIPNet(testIPv4ZeroTail, 16),
wantErrAs: nil,
wantErrMsg: "",
in: "0." + ipv4NetRevGood,
Expand Down Expand Up @@ -370,7 +370,7 @@ func TestSubnetFromReversedAddr(t *testing.T) {
in: ipv6RevZeroes + "." + ipv6RevGoodSuffix,
name: "good_ipv6_single_addr_leading_zeroes",
}, {
want: newIPNet(testIPv6ZeroTail, 4*17),
want: newIPNet(testIPv6ZeroTail, 68),
wantErrAs: nil,
wantErrMsg: "",
in: "0." + ipv6RevGoodSuffix,
Expand Down

0 comments on commit 35899cc

Please sign in to comment.