@@ -34,9 +34,9 @@ func IncludeAliasedNetworks(networks *networkOptions) {
3434 networks .includeAliasedNetworks = true
3535}
3636
37- // IncludeEmptyNetworks is an option for Networks and NetworksWithin
37+ // IncludeNetworksWithoutData is an option for Networks and NetworksWithin
3838// that makes them include networks without any data in the iteration.
39- func IncludeEmptyNetworks (networks * networkOptions ) {
39+ func IncludeNetworksWithoutData (networks * networkOptions ) {
4040 networks .includeEmptyNetworks = true
4141}
4242
@@ -49,7 +49,7 @@ func IncludeEmptyNetworks(networks *networkOptions) {
4949// [IncludeAliasedNetworks] option.
5050//
5151// Networks without data are excluded by default. To include them, use
52- // [IncludeEmptyNetworks ].
52+ // [IncludeNetworksWithoutData ].
5353func (r * Reader ) Networks (options ... NetworksOption ) iter.Seq [Result ] {
5454 if r .Metadata .IPVersion == 6 {
5555 return r .NetworksWithin (allIPv6 , options ... )
@@ -69,7 +69,7 @@ func (r *Reader) Networks(options ...NetworksOption) iter.Seq[Result] {
6969// iterator will iterate over exactly one network, the containing network.
7070//
7171// Networks without data are excluded by default. To include them, use
72- // [IncludeEmptyNetworks ].
72+ // [IncludeNetworksWithoutData ].
7373func (r * Reader ) NetworksWithin (prefix netip.Prefix , options ... NetworksOption ) iter.Seq [Result ] {
7474 return func (yield func (Result ) bool ) {
7575 if r .Metadata .IPVersion == 4 && prefix .Addr ().Is6 () {
0 commit comments