fix readme

This commit is contained in:
c9s 2014-06-01 03:04:59 +08:00
parent 998560634e
commit f5f24aa15e

View file

@ -58,7 +58,7 @@ r3_tree_insert_pathl(n, "/user/{id:\\d+}", strlen("/user/{id:\\d+}"), &route_dat
// let's compile the tree! // let's compile the tree!
char *errstr = NULL; char *errstr = NULL;
int errno = r3_tree_compile(n, &errstr); int err = r3_tree_compile(n, &errstr);
// dump the compiled tree // dump the compiled tree
@ -110,8 +110,8 @@ int route_data = 3;
r3_tree_insert_routel(n, METHOD_GET | METHOD_POST, "/blog/post", sizeof("/blog/post") - 1, &route_data ); r3_tree_insert_routel(n, METHOD_GET | METHOD_POST, "/blog/post", sizeof("/blog/post") - 1, &route_data );
char *errstr = NULL; char *errstr = NULL;
int errno; int err;
errno = r3_tree_compile(n, &errstr); err = r3_tree_compile(n, &errstr);
// in your http server handler // in your http server handler