Permalink
Browse files

readme: improve format, fix code syntax

PR-URL: #305
Reviewed-By: Fedor Indutny <fedor@indutny.com>
  • Loading branch information...
1 parent f2c26ee commit 737627b2b232f6a47dffca7ea17a8e3c3e2231a0 @oldratlee oldratlee committed with indutny May 4, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -148,7 +148,7 @@ callback in a threadsafe manner. This allows http-parser to be used in
multi-threaded contexts.
Example:
-```
+```c
typedef struct {
socket_t sock;
void* buffer;
@@ -184,7 +184,7 @@ void http_parser_thread(socket_t sock) {
parser supplied to callback functions */
parser->data = my_data;
- http_parser_settings settings; / * set up callbacks */
+ http_parser_settings settings; /* set up callbacks */
settings.on_url = my_url_callback;
/* execute parser */

0 comments on commit 737627b

Please sign in to comment.