@@ -34,9 +34,9 @@ func IncludeAliasedNetworks(networks *networkOptions) {
34
34
networks .includeAliasedNetworks = true
35
35
}
36
36
37
- // IncludeEmptyNetworks is an option for Networks and NetworksWithin
37
+ // IncludeNetworksWithoutData is an option for Networks and NetworksWithin
38
38
// that makes them include networks without any data in the iteration.
39
- func IncludeEmptyNetworks (networks * networkOptions ) {
39
+ func IncludeNetworksWithoutData (networks * networkOptions ) {
40
40
networks .includeEmptyNetworks = true
41
41
}
42
42
@@ -49,7 +49,7 @@ func IncludeEmptyNetworks(networks *networkOptions) {
49
49
// [IncludeAliasedNetworks] option.
50
50
//
51
51
// Networks without data are excluded by default. To include them, use
52
- // [IncludeEmptyNetworks ].
52
+ // [IncludeNetworksWithoutData ].
53
53
func (r * Reader ) Networks (options ... NetworksOption ) iter.Seq [Result ] {
54
54
if r .Metadata .IPVersion == 6 {
55
55
return r .NetworksWithin (allIPv6 , options ... )
@@ -69,7 +69,7 @@ func (r *Reader) Networks(options ...NetworksOption) iter.Seq[Result] {
69
69
// iterator will iterate over exactly one network, the containing network.
70
70
//
71
71
// Networks without data are excluded by default. To include them, use
72
- // [IncludeEmptyNetworks ].
72
+ // [IncludeNetworksWithoutData ].
73
73
func (r * Reader ) NetworksWithin (prefix netip.Prefix , options ... NetworksOption ) iter.Seq [Result ] {
74
74
return func (yield func (Result ) bool ) {
75
75
if r .Metadata .IPVersion == 4 && prefix .Addr ().Is6 () {
0 commit comments