# HG changeset patch # User Vladimir Homutov # Date 1566310887 -10800 # Node ID eca8e37a34ef25f45bcc8e337a8c9853c25fa62e # Parent d741fcb6d36c9cb390a8967e0504a18250054496 Fixed typos. diff --git a/xml/en/docs/dev/development_guide.xml b/xml/en/docs/dev/development_guide.xml --- a/xml/en/docs/dev/development_guide.xml +++ b/xml/en/docs/dev/development_guide.xml @@ -660,14 +660,14 @@ if (n >= 0) { } The arguments to ngx_regex_exec() are the compiled regular -expression re, the string to match s, +expression re, the string to match input, an optional array of integers to hold any captures that are found, and the array's size. The size of the captures array must be a multiple of three, as required by the PCRE API. In the example, the size is calculated from the total number of captures plus -1one for the matched string itself. +one for the matched string itself. @@ -1288,7 +1288,7 @@ There are two generic key-creation funct ngx_hash_key(data, len) and ngx_hash_key_lc(data, len). The latter converts a string to all lowercase characters, so the passed string -must be writeable. +must be writable. If that is not true, pass the NGX_HASH_READONLY_KEY flag to the function, initializing the key array (see below). @@ -2615,7 +2615,7 @@ point later within the current event loo Posting events is a good practice for simplifying code and escaping stack overflows. Posted events are held in a post queue. -The ngx_post_event(ev, q) mscro posts the event +The ngx_post_event(ev, q) macro posts the event ev to the post queue q. The ngx_delete_posted_event(ev) macro deletes the event ev from the queue it's currently posted in. @@ -3811,7 +3811,7 @@ Each HTTP client connection runs through ngx_event_accept() accepts a client TCP connection. This handler is called in response to a read notification on a listen socket. -A new ngx_connecton_t object is created at this stage +A new ngx_connection_t object is created at this stage to wrap the newly accepted client socket. Each nginx listener provides a handler to pass the new connection object to. For HTTP connections it's ngx_http_init_connection(c).