From 737627b2b232f6a47dffca7ea17a8e3c3e2231a0 Mon Sep 17 00:00:00 2001 From: oldratlee Date: Wed, 4 May 2016 13:27:59 +0800 Subject: [PATCH] readme: improve format, fix code syntax PR-URL: https://github.com/nodejs/http-parser/pull/305 Reviewed-By: Fedor Indutny --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eedd7f8..439b309 100644 --- a/README.md +++ b/README.md @@ -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 */