Skip to content

Commit

Permalink
Update comment to reflect the changed behavior.
Browse files Browse the repository at this point in the history
  • Loading branch information
externalreality committed May 29, 2018
1 parent 098075a commit a5ed585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ func SubnetInAnyRange(cidrs []*net.IPNet, subnet *net.IPNet) bool {
// Export for testing
var ResolverFunc = net.ResolveIPAddr

// FormatAsCIDR converts the specified IP addresses to
// a slice of CIDRs.
// FormatAsCIDR converts the specified IP addresses to a slice of CIDRs. It
// attempts to resolve any address represented as hostnames before formatting.
func FormatAsCIDR(addresses []string) ([]string, error) {
result := make([]string, len(addresses))
for i, a := range addresses {
Expand Down

0 comments on commit a5ed585

Please sign in to comment.