Selaa lähdekoodia

chore: fix function names in comment (#2888)

Signed-off-by: loselarry <[email protected]>
loselarry 1 vuosi sitten
vanhempi
commit
fa32c2ac58
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      logic/networks.go
  2. 1 1
      logic/util.go

+ 1 - 1
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

+ 1 - 1
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 {