Skip to content

Commit

Permalink
chore: fix function names in comment (#2888)
Browse files Browse the repository at this point in the history
Signed-off-by: loselarry <bikangning@yeah.net>
  • Loading branch information
loselarry authored Apr 11, 2024
1 parent 08efea7 commit fa32c2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logic/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion logic/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fa32c2a

Please sign in to comment.