Skip to content

Commit

Permalink
fix: Fix print
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Dec 21, 2023
1 parent a4da3f5 commit 59e4bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ assert_eq!(trie.get_value("app".bytes()), Some("App"));
assert_eq!(trie.get_value("none".bytes()), None);

for (k, v) in trie.iter() {
println!("kv: {} {}", k, v);
println!("kv: {:?} {}", k, v);
}
```

Expand Down
2 changes: 1 addition & 1 deletion src/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ where
type Item = (Vec<K>, V); // Yield key-value pairs

fn next(&mut self) -> Option<Self::Item> {
while let Some((node_id, mut path)) = self.stack.pop() {
while let Some((node_id, path)) = self.stack.pop() {
let node = &self.trie.nodes[node_id];
// Push children to the stack with updated path
for &(ref key_part, child_id) in &node.children {
Expand Down

0 comments on commit 59e4bb7

Please sign in to comment.