From 714a9b7f7c6f3698cd9bf17165d8cdec75997e46 Mon Sep 17 00:00:00 2001 From: Job Date: Fri, 13 Dec 2024 16:15:40 +0100 Subject: [PATCH] docs(readme): fix syntax errors in code sample --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fa38651..ad4422b 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ Features: package main import ( - "fmt" - "github.com/plar/go-adaptive-radix-tree/v2" + "fmt" + art "github.com/plar/go-adaptive-radix-tree/v2" ) func main() { @@ -56,7 +56,7 @@ func main() { // Iterate over the tree in descending order using reverse traversal fmt.Println("\nDescending order iteration:") tree.ForEach(func(node art.Node) bool { - fmt.Printf("Key: %s, Value: %s\n", node.Key(), node.Value())) + fmt.Printf("Key: %s, Value: %s\n", node.Key(), node.Value()) return true }, art.TraverseReverse)