From ae7e57915164d5bc12252650e6198967fd02e11b Mon Sep 17 00:00:00 2001 From: Khalid Nowaf Date: Wed, 3 Jul 2024 00:24:20 +0300 Subject: [PATCH] fix: typo --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0857d44..5057f5d 100644 --- a/README.md +++ b/README.md @@ -98,15 +98,15 @@ func main() { if _, ipnet, err := net.ParseCIDR(network.cidr); err == nil { metadata := supernet.NewMetadata(ipnet) - attributes is used to store any additional data about the network + // attributes is used to store any additional data about the network metadata.Attributes["name"] = network.name - optional, it will be used to resolve conflict - if no priority add. the size of the network e.g /32, will be used as priority - so it is grunted smaller network will be not be over taken by larger network + // optional, it will be used to resolve conflict + // if no priority add. the size of the network e.g /32, will be used as priority + // so it is grunted smaller network will be not be over taken by larger network metadata.Priority = network.priorities - result has information about the conflict and how it solve it + // result has information about the conflict and how it solve it insertResult := super.InsertCidr(ipnet, metadata) - fmt.Println(insertResult.String()) see what happened + fmt.Println(insertResult.String()) // see what happened } } // get all networks (it will return conflict free networks)