From 1b202335ee5ab491b2005dead8c777ae4e9ee3a1 Mon Sep 17 00:00:00 2001 From: Shou-Chi Chen Date: Thu, 17 Oct 2024 19:04:22 +0800 Subject: [PATCH] Fix B-tree example typo in README Fix a typo in the B-tree example in the README.md by changing the argument in the function btree_iter_new() from "btree" to "tr" to accurately reflect the intended usage. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb8d8c2..6c8e91f 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ int main() { btree_ascend(tr, &(struct user){.first="",.last="Murphy"}, user_iter, NULL); printf("\n-- loop iterator (same as previous) --\n"); - struct btree_iter *iter = btree_iter_new(btree); + struct btree_iter *iter = btree_iter_new(tr); bool ok = btree_iter_seek(iter, &(struct user){.first="",.last="Murphy"}); while (ok) { const struct user *user = btree_iter_item(iter);