Skip to content

Commit a2ebfb3

Browse files
job79plar
authored andcommitted
docs(readme): fix syntax errors in code sample (#42)
1 parent 47baa28 commit a2ebfb3

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
@@ -26,8 +26,8 @@ Features:
2626
package main
2727

2828
import (
29-
"fmt"
30-
"github.com/plar/go-adaptive-radix-tree"
29+
"fmt"
30+
art "github.com/plar/go-adaptive-radix-tree"
3131
)
3232

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

0 commit comments

Comments
 (0)