Skip to content

Commit 332d141

Browse files
authored
docs(readme): fix syntax errors in code sample (#42)
1 parent 7ac1530 commit 332d141

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Features:
2525
package main
2626

2727
import (
28-
"fmt"
29-
"github.com/plar/go-adaptive-radix-tree/v2"
28+
"fmt"
29+
art "github.com/plar/go-adaptive-radix-tree/v2"
3030
)
3131

3232
func main() {
@@ -56,7 +56,7 @@ func main() {
5656
// Iterate over the tree in descending order using reverse traversal
5757
fmt.Println("\nDescending order iteration:")
5858
tree.ForEach(func(node art.Node) bool {
59-
fmt.Printf("Key: %s, Value: %s\n", node.Key(), node.Value()))
59+
fmt.Printf("Key: %s, Value: %s\n", node.Key(), node.Value())
6060
return true
6161
}, art.TraverseReverse)
6262

0 commit comments

Comments
 (0)