From 10d6a64eac2343322d8420777bfc4293b7d31f45 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 27 May 2014 12:32:07 +0800 Subject: [PATCH] update README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 04323bc..d57152c 100644 --- a/README.md +++ b/README.md @@ -64,10 +64,9 @@ r3_tree_compile(n); r3_tree_dump(n, 0); // match a route -node *matched_node = r3_tree_match(n, "/foo/bar", strlen("/foo/bar"), NULL); +node *matched_node = r3_tree_matchl(n, "/foo/bar", strlen("/foo/bar"), NULL); if (matched_node) { - matched_node->endpoint; // make sure there is a route end at here. - int ret = *( (*int) matched_node->route_ptr ); + int ret = *( (*int) matched_node->data ); } // release the tree