fix readme
This commit is contained in:
parent
998560634e
commit
f5f24aa15e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue