[PATCH 1/3] Documentation/rbtree.txt: Fix possible typo in example

From: Ian Abbott
Date: Tue Sep 04 2012 - 12:28:38 EST


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@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/