From ff762c2c9bb6e1764dee4f72f34104162b0d9a27 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 19 Jan 2011 12:35:59 -0800 Subject: [PATCH] improve execute2 doc --- http_parser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http_parser.h b/http_parser.h index c8bfb89..cc72483 100644 --- a/http_parser.h +++ b/http_parser.h @@ -247,7 +247,7 @@ struct http_parser_data { * space in the user-supplied `http_parser_data` array. The last * element of `data` will be HTTP_NEEDS_DATA_ELEMENTS. Restart * http_parser_execute2() with a fresh array of elements starting at - * the place that HTTP_NEEDS_DATA_ELEMENTS pointed to. + * payload.string.p in the HTTP_NEEDS_DATA_ELEMENTS object. * * 3. The parser cannot continue until http_parser_has_body(parser, 1) * or http_parser_has_body(parser, 0) is called. This is required for @@ -260,8 +260,8 @@ struct http_parser_data { * * The last element of `data` will be HTTP_NEEDS_INPUT. The user must * call http_parser_has_body() and then restart http_parser_execute2 - * with a fresh array of `data` elements and starting at the place - * HTTP_NEEDS_INPUT pointed to. + * with a fresh array of `data` elements and starting at + * payload.string.p that HTTP_NEEDS_INPUT pointed to. */ int http_parser_execute2(http_parser* parser, const char* buf,