Skip to content

Commit 4fb2531

Browse files
committed
Fix outdated docs
1 parent 8d04368 commit 4fb2531

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

traverse.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func IncludeAliasedNetworks(networks *networkOptions) {
3939
// Please note that a MaxMind DB may map IPv4 networks into several locations
4040
// in an IPv6 database. This iterator will only iterate over these once by
4141
// default. To iterate over all the IPv4 network locations, use the
42-
// IncludeAliasedNetworks option.
42+
// [IncludeAliasedNetworks] option.
4343
func (r *Reader) Networks(options ...NetworksOption) iter.Seq[Result] {
4444
if r.Metadata.IPVersion == 6 {
4545
return r.NetworksWithin(allIPv6, options...)
@@ -51,9 +51,9 @@ func (r *Reader) Networks(options ...NetworksOption) iter.Seq[Result] {
5151
// in the database which are contained in a given prefix.
5252
//
5353
// Please note that a MaxMind DB may map IPv4 networks into several locations
54-
// in an IPv6 database. This iterator will iterate over all of these locations
55-
// separately. To only iterate over the IPv4 networks once, use the
56-
// SkipAliasedNetworks option.
54+
// in an IPv6 database. This iterator will only iterate over these once by
55+
// default. To iterate over all the IPv4 network locations, use the
56+
// [IncludeAliasedNetworks] option.
5757
//
5858
// If the provided prefix is contained within a network in the database, the
5959
// iterator will iterate over exactly one network, the containing network.

0 commit comments

Comments
 (0)