From fa32c2ac5897e57ff58451530f54493a274dfa6f Mon Sep 17 00:00:00 2001 From: loselarry <166403105+loselarry@users.noreply.github.com> Date: Thu, 11 Apr 2024 23:34:24 +0800 Subject: [PATCH] chore: fix function names in comment (#2888) Signed-off-by: loselarry --- logic/networks.go | 2 +- logic/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logic/networks.go b/logic/networks.go index 5ba0e84d6..22d595439 100644 --- a/logic/networks.go +++ b/logic/networks.go @@ -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 diff --git a/logic/util.go b/logic/util.go index bb38a9524..3b410c586 100644 --- a/logic/util.go +++ b/logic/util.go @@ -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 {