Skip to content

Commit 59d39ca

Browse files
authored
doc: fixed spelling errors in the docs and code. (#1947)
1 parent ccc748e commit 59d39ca

30 files changed

+61
-61
lines changed

README.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Build the source with this module:
379379
# current nginx build.
380380
# You can get usually those options using command nginx -V
381381

382-
# you can change the parallism number 2 below to fit the number of spare CPU cores in your
382+
# you can change the parallelism number 2 below to fit the number of spare CPU cores in your
383383
# machine.
384384
make -j2
385385
make install
@@ -2654,7 +2654,7 @@ The [ngx.ssl.clienthello](https://github.com/openresty/lua-resty-core/blob/maste
26542654
provided by the [lua-resty-core](https://github.com/openresty/lua-resty-core/#readme)
26552655
library are particularly useful in this context.
26562656

2657-
Note that this handler runs in extremelly early stage of SSL handshake, before the SSL client hello extensions are parsed.
2657+
Note that this handler runs in extremely early stage of SSL handshake, before the SSL client hello extensions are parsed.
26582658
So you can not use some Lua API like `ssl.server_name()` which is dependent on the later stage's processing.
26592659

26602660
Also note that only the directive in default server is valid for several virtual servers with the same IP address and port.
@@ -3363,7 +3363,7 @@ lua_transform_underscores_in_response_headers
33633363

33643364
**context:** *http, server, location, location-if*
33653365

3366-
Controls whether to transform underscores (`_`) in the response header names specified in the [ngx.header.HEADER](#ngxheaderheader) API to hypens (`-`).
3366+
Controls whether to transform underscores (`_`) in the response header names specified in the [ngx.header.HEADER](#ngxheaderheader) API to hyphens (`-`).
33673367

33683368
This directive was first introduced in the `v0.5.0rc32` release.
33693369

@@ -3472,7 +3472,7 @@ Specifies the size limit of the Lua VM pool (default 100) that will be used in t
34723472

34733473
Also, it is not allowed to create Lua VMs that exceeds the pool size limit.
34743474

3475-
The Lua VM in the VM pool is used to execute Lua code in seperate thread.
3475+
The Lua VM in the VM pool is used to execute Lua code in separate thread.
34763476

34773477
The pool is global at Nginx worker level. And it is used to reuse Lua VMs between requests.
34783478

@@ -5414,7 +5414,7 @@ ngx.req.init_body
54145414

54155415
**context:** *set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua**
54165416

5417-
Creates a new blank request body for the current request and inializes the buffer for later request body data writing via the [ngx.req.append_body](#ngxreqappend_body) and [ngx.req.finish_body](#ngxreqfinish_body) APIs.
5417+
Creates a new blank request body for the current request and initializes the buffer for later request body data writing via the [ngx.req.append_body](#ngxreqappend_body) and [ngx.req.finish_body](#ngxreqfinish_body) APIs.
54185418

54195419
If the `buffer_size` argument is specified, then its value will be used for the size of the memory buffer for body writing with [ngx.req.append_body](#ngxreqappend_body). If the argument is omitted, then the value specified by the standard [client_body_buffer_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size) directive will be used instead.
54205420

@@ -9041,7 +9041,7 @@ coroutine.resume
90419041

90429042
**context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, init_by_lua*, ngx.timer.*, header_filter_by_lua*, body_filter_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua*, ssl_client_hello_by_lua**
90439043

9044-
Resumes the executation of a user Lua coroutine object previously yielded or just created.
9044+
Resumes the execution of a user Lua coroutine object previously yielded or just created.
90459045

90469046
Similar to the standard Lua [coroutine.resume](https://www.lua.org/manual/5.1/manual.html#pdf-coroutine.resume) API, but works in the context of the Lua coroutines created by ngx_lua.
90479047

doc/HttpLuaModule.wiki

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Build the source with this module:
309309
# current nginx build.
310310
# You can get usually those options using command nginx -V
311311
312-
# you can change the parallism number 2 below to fit the number of spare CPU cores in your
312+
# you can change the parallelism number 2 below to fit the number of spare CPU cores in your
313313
# machine.
314314
make -j2
315315
make install
@@ -2237,7 +2237,7 @@ The [https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/ssl/clienth
22372237
provided by the [https://github.com/openresty/lua-resty-core/#readme lua-resty-core]
22382238
library are particularly useful in this context.
22392239
2240-
Note that this handler runs in extremelly early stage of SSL handshake, before the SSL client hello extensions are parsed.
2240+
Note that this handler runs in extremely early stage of SSL handshake, before the SSL client hello extensions are parsed.
22412241
So you can not use some Lua API like <code>ssl.server_name()</code> which is dependent on the later stage's processing.
22422242
22432243
Also note that only the directive in default server is valid for several virtual servers with the same IP address and port.
@@ -2864,7 +2864,7 @@ This directive was first introduced in the <code>v0.9.20</code> release.
28642864
28652865
'''context:''' ''http, server, location, location-if''
28662866
2867-
Controls whether to transform underscores (<code>_</code>) in the response header names specified in the [[#ngx.header.HEADER|ngx.header.HEADER]] API to hypens (<code>-</code>).
2867+
Controls whether to transform underscores (<code>_</code>) in the response header names specified in the [[#ngx.header.HEADER|ngx.header.HEADER]] API to hyphens (<code>-</code>).
28682868
28692869
This directive was first introduced in the <code>v0.5.0rc32</code> release.
28702870
@@ -2957,7 +2957,7 @@ Specifies the size limit of the Lua VM pool (default 100) that will be used in t
29572957
29582958
Also, it is not allowed to create Lua VMs that exceeds the pool size limit.
29592959
2960-
The Lua VM in the VM pool is used to execute Lua code in seperate thread.
2960+
The Lua VM in the VM pool is used to execute Lua code in separate thread.
29612961
29622962
The pool is global at Nginx worker level. And it is used to reuse Lua VMs between requests.
29632963
@@ -4549,7 +4549,7 @@ See also [[#ngx.req.set_body_data|ngx.req.set_body_data]].
45494549
45504550
'''context:''' ''set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*''
45514551
4552-
Creates a new blank request body for the current request and inializes the buffer for later request body data writing via the [[#ngx.req.append_body|ngx.req.append_body]] and [[#ngx.req.finish_body|ngx.req.finish_body]] APIs.
4552+
Creates a new blank request body for the current request and initializes the buffer for later request body data writing via the [[#ngx.req.append_body|ngx.req.append_body]] and [[#ngx.req.finish_body|ngx.req.finish_body]] APIs.
45534553
45544554
If the <code>buffer_size</code> argument is specified, then its value will be used for the size of the memory buffer for body writing with [[#ngx.req.append_body|ngx.req.append_body]]. If the argument is omitted, then the value specified by the standard [[HttpCoreModule#client_body_buffer_size|client_body_buffer_size]] directive will be used instead.
45554555
@@ -7752,7 +7752,7 @@ This API was first introduced in the <code>v0.6.0</code> release.
77527752
77537753
'''context:''' ''rewrite_by_lua*, access_by_lua*, content_by_lua*, init_by_lua*, ngx.timer.*, header_filter_by_lua*, body_filter_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua*, ssl_client_hello_by_lua*''
77547754
7755-
Resumes the executation of a user Lua coroutine object previously yielded or just created.
7755+
Resumes the execution of a user Lua coroutine object previously yielded or just created.
77567756
77577757
Similar to the standard Lua [https://www.lua.org/manual/5.1/manual.html#pdf-coroutine.resume coroutine.resume] API, but works in the context of the Lua coroutines created by ngx_lua.
77587758

src/ngx_http_lua_clfactory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
* | at [p[i]] |
127127
* ---------------------
128128
* | Vector | Debug lineinfo vector
129-
* | [lineinfo] | Empty vector here if dubug info is stripped
129+
* | [lineinfo] | Empty vector here if debug info is stripped
130130
* ---------------------
131131
* | Int | Number of local variable in this function
132132
* | [sizelocvars] | 0 if debug info is stripped
@@ -136,7 +136,7 @@
136136
* | .varname] | |
137137
* --------------------- |
138138
* | Int | instruction counter |
139-
* | [locvars[i]] | where lcoal var i start to be |-> repeat for i in
139+
* | [locvars[i]] | where local var i start to be |-> repeat for i in
140140
* | .startpc] | referenced | [0..sizelocvars]
141141
* --------------------- |
142142
* | Int | instruction counter, where local |

src/ngx_http_lua_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ struct ngx_http_lua_main_conf_s {
273273
ngx_http_lua_sema_mm_t *sema_mm;
274274

275275
ngx_uint_t malloc_trim_cycle; /* a cycle is defined as the number
276-
of reqeusts */
276+
of requests */
277277
ngx_uint_t malloc_trim_req_count;
278278

279279
#if (nginx_version >= 1011011)

src/ngx_http_lua_headers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ ngx_http_lua_ngx_req_header_set_helper(lua_State *L)
677677
p = (u_char *) luaL_checklstring(L, -1, &len);
678678

679679
/*
680-
* we also copy the trailling '\0' char here because nginx
680+
* we also copy the trailing '\0' char here because nginx
681681
* header values must be null-terminated
682682
* */
683683

@@ -705,7 +705,7 @@ ngx_http_lua_ngx_req_header_set_helper(lua_State *L)
705705
} else {
706706

707707
/*
708-
* we also copy the trailling '\0' char here because nginx
708+
* we also copy the trailing '\0' char here because nginx
709709
* header values must be null-terminated
710710
* */
711711

src/ngx_http_lua_semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ ngx_http_lua_ffi_sema_post(ngx_http_lua_sema_t *sem, int n)
343343
sem->resource_count += n;
344344

345345
if (!ngx_queue_empty(&sem->wait_queue)) {
346-
/* we need the extra paranthese around the first argument of
346+
/* we need the extra parentheses around the first argument of
347347
* ngx_post_event() just to work around macro issues in nginx
348348
* cores older than nginx 1.7.12 (exclusive).
349349
*/

src/ngx_http_lua_socket_tcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3112,7 +3112,7 @@ ngx_http_lua_socket_tcp_settimeout(lua_State *L)
31123112
n = lua_gettop(L);
31133113

31143114
if (n != 2) {
3115-
return luaL_error(L, "ngx.socket settimout: expecting 2 arguments "
3115+
return luaL_error(L, "ngx.socket settimeout: expecting 2 arguments "
31163116
"(including the object) but seen %d", lua_gettop(L));
31173117
}
31183118

@@ -3159,7 +3159,7 @@ ngx_http_lua_socket_tcp_settimeouts(lua_State *L)
31593159
n = lua_gettop(L);
31603160

31613161
if (n != 4) {
3162-
return luaL_error(L, "ngx.socket settimout: expecting 4 arguments "
3162+
return luaL_error(L, "ngx.socket settimeout: expecting 4 arguments "
31633163
"(including the object) but seen %d", lua_gettop(L));
31643164
}
31653165

src/ngx_http_lua_socket_udp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ ngx_http_lua_socket_udp_settimeout(lua_State *L)
10441044
n = lua_gettop(L);
10451045

10461046
if (n != 2) {
1047-
return luaL_error(L, "ngx.socket settimout: expecting at least 2 "
1047+
return luaL_error(L, "ngx.socket settimeout: expecting at least 2 "
10481048
"arguments (including the object) but seen %d",
10491049
lua_gettop(L));
10501050
}

src/ngx_http_lua_ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ typedef struct {
1919
ngx_http_request_t *request; /* fake request */
2020
ngx_pool_cleanup_pt *cleanup;
2121

22-
ngx_ssl_session_t *session; /* retrurn value for openssl's
22+
ngx_ssl_session_t *session; /* return value for openssl's
2323
* session_get_cb */
2424

2525
ngx_str_t session_id;

src/ngx_http_lua_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ ngx_http_lua_abort_pending_timers(ngx_event_t *ev)
875875
next = cur->parent;
876876

877877
} else {
878-
/* not reacheable */
878+
/* not reachable */
879879
next = NULL;
880880
}
881881

0 commit comments

Comments
 (0)