@@ -90,7 +90,7 @@ func AddrFrom4(addr [4]byte) Addr {
90
90
}
91
91
92
92
// AddrFrom16 returns the IPv6 address given by the bytes in addr.
93
- // An IPv6 -mapped IPv4 address is left as an IPv6 address.
93
+ // An IPv4 -mapped IPv6 address is left as an IPv6 address.
94
94
// (Use Unmap to convert them if needed.)
95
95
func AddrFrom16 (addr [16 ]byte ) Addr {
96
96
return Addr {
@@ -675,7 +675,7 @@ const (
675
675
)
676
676
677
677
// As16 returns the IP address in its 16-byte representation.
678
- // IPv4 addresses are returned in their v6 -mapped form.
678
+ // IPv4 addresses are returned in their IPv4 -mapped IPv6 form.
679
679
// IPv6 addresses with zones are returned without their zone (use the
680
680
// Zone method to get it).
681
681
// The ip zero value returns all zeroes.
@@ -1340,7 +1340,7 @@ func (p Prefix) Masked() Prefix {
1340
1340
// Contains reports whether the network p includes ip.
1341
1341
//
1342
1342
// An IPv4 address will not match an IPv6 prefix.
1343
- // A v6 -mapped IPv6 address will not match an IPv4 prefix.
1343
+ // An IPv4 -mapped IPv6 address will not match an IPv4 prefix.
1344
1344
// A zero-value IP will not match any prefix.
1345
1345
// If ip has an IPv6 zone, Contains returns false,
1346
1346
// because Prefixes strip zones.
@@ -1372,8 +1372,8 @@ func (p Prefix) Contains(ip Addr) bool {
1372
1372
// Overlaps reports whether p and o contain any IP addresses in common.
1373
1373
//
1374
1374
// If p and o are of different address families or either have a zero
1375
- // IP, it reports false. Like the Contains method, a prefix with a
1376
- // v6 -mapped IPv4 IP is still treated as an IPv6 mask.
1375
+ // IP, it reports false. Like the Contains method, a prefix with an
1376
+ // IPv4 -mapped IPv6 IP is still treated as an IPv6 mask.
1377
1377
func (p Prefix ) Overlaps (o Prefix ) bool {
1378
1378
if ! p .IsValid () || ! o .IsValid () {
1379
1379
return false
0 commit comments