chore: fix function names in comment (#2888)

Signed-off-by: loselarry <bikangning@yeah.net>
This commit is contained in:
loselarry 2024-04-11 23:34:24 +08:00 committed by GitHub
parent 08efea73ac
commit fa32c2ac58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -138,7 +138,7 @@ func GetParentNetwork(networkname string) (models.Network, error) {
return network, nil
}
// GetParentNetwork - get parent network
// GetNetworkSettings - get parent network
func GetNetworkSettings(networkname string) (models.Network, error) {
var network models.Network

View file

@ -89,7 +89,7 @@ func StringSliceContains(slice []string, item string) bool {
return false
}
// NormalCIDR - returns the first address of CIDR
// NormalizeCIDR - returns the first address of CIDR
func NormalizeCIDR(address string) (string, error) {
ip, IPNet, err := net.ParseCIDR(address)
if err != nil {