Messages in this thread Patch in this message | | | From | Ian Abbott <> | Subject | [PATCH 1/3] Documentation/rbtree.txt: Fix possible typo in example | Date | Tue, 4 Sep 2012 17:28:08 +0100 |
| |
The example code for rb_erase() usage has a function call to mysearch(). Presumably this ought to be my_search() to match the example code earlier in the document.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk> --- Documentation/rbtree.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/rbtree.txt b/Documentation/rbtree.txt index 8d32d85..d4a31e0 100644 --- a/Documentation/rbtree.txt +++ b/Documentation/rbtree.txt @@ -146,7 +146,7 @@ To remove an existing node from a tree, call: Example: - struct mytype *data = mysearch(&mytree, "walrus"); + struct mytype *data = my_search(&mytree, "walrus"); if (data) { rb_erase(&data->node, &mytree); -- 1.7.12
| |