From 302763b783777c351542f64ff3df2f04e71c3736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B0=A1=E7=85=92=E8=88=AA=20=28Jian=20Weihang=29?= Date: Tue, 29 Jul 2014 21:47:58 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c40b0a..9638531 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ API #include // create a router tree with 10 children capacity (this capacity can grow dynamically) -n = r3_tree_create(10); +node *n = r3_tree_create(10); int route_data = 3; @@ -85,7 +85,7 @@ r3_tree_dump(n, 0); // match a route node *matched_node = r3_tree_matchl(n, "/foo/bar", strlen("/foo/bar"), NULL); if (matched_node) { - int ret = *( (*int) matched_node->data ); + int ret = *( (int*) matched_node->data ); } // release the tree