Skip to content

Commit 107026d

Browse files
authored
style: typo fixes.
1 parent 856d406 commit 107026d

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ cd lua-resty-core
144144
sudo make install LUA_LIB_DIR=/opt/nginx/lualib
145145
```
146146

147-
After that, you need to add the above directory to the LuaJIT search direcotries with `lua_package_path` nginx directive in the http context and stream context.
147+
After that, you need to add the above directory to the LuaJIT search directories with `lua_package_path` nginx directive in the http context and stream context.
148148

149149
```
150150
lua_package_path "/opt/nginx/lualib/?.lua;;";

lib/ngx/base64.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ decode\_base64url
6666

6767
Decode `input` using base64url rules. Returns the decoded string.
6868

69-
If the `input` is not a valid base64url encoded string, `decoded `will be `nil`
69+
If the `input` is not a valid base64url encoded string, `decoded` will be `nil`
7070
and `err` will be a string describing the error.
7171

7272
[Back to TOC](#table-of-contents)

lib/ngx/pipe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Some more examples:
150150
```lua
151151
local proc, err = ngx_pipe.spawn({"ls", "-l"})
152152

153-
local proc, err = ngx_pipe.spawn({"perl", "-e", "print 'hello, wolrd'"})
153+
local proc, err = ngx_pipe.spawn({"perl", "-e", "print 'hello, world'"})
154154
```
155155

156156
If `args` is specified as a string, it will be executed by the operating system

lib/ngx/req.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ This method adds the specified header and its value to the current
6565
request. It works similarly as
6666
[ngx.req.set_header](https://github.com/openresty/lua-nginx-module#ngxreqset_header),
6767
with the exception that when the header already exists, the specified value(s)
68-
will be appended instead of overriden.
68+
will be appended instead of overridden.
6969

7070
The first argument `header_name` must be a non-empty string.
7171

lib/ngx/resp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ngx_resp.add_header("Foo", "baz")
4040

4141

4242
ngx_resp.set(531, "user defined error")
43-
--> the response line will be: 531 user defiend error
43+
--> the response line will be: 531 user defined error
4444
```
4545

4646
[Back to TOC](#table-of-contents)

lib/ngx/ssl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ set_der_priv_key
225225

226226
**context:** *ssl_certificate_by_lua**
227227

228-
Sets the DER-formatted prviate key for the current SSL connection.
228+
Sets the DER-formatted private key for the current SSL connection.
229229

230230
Returns `true` on success, or a `nil` value and a string describing the error otherwise.
231231

@@ -502,7 +502,7 @@ parse_pem_cert
502502

503503
**context:** *any*
504504

505-
Converts the PEM-formated SSL certificate chain data into an opaque cdata pointer (for later uses
505+
Converts the PEM-formatted SSL certificate chain data into an opaque cdata pointer (for later uses
506506
in the [set_cert](#set_cert)
507507
function, for example).
508508

@@ -541,7 +541,7 @@ parse_der_cert
541541

542542
**context:** *any*
543543

544-
Converts the DER-formated SSL certificate chain data into an opaque cdata pointer (for later uses
544+
Converts the DER-formatted SSL certificate chain data into an opaque cdata pointer (for later uses
545545
in the [set_cert](#set_cert)
546546
function, for example).
547547

lib/ngx/ssl/clienthello.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ get_client_hello_server_name
9999

100100
Returns the TLS SNI (Server Name Indication) name set by the client.
101101

102-
Return `nil` when then the extension does not exist.
102+
Return `nil` when the extension does not exist.
103103

104104
In case of errors, it returns `nil` and a string describing the error.
105105

@@ -117,7 +117,7 @@ get_supported_versions
117117

118118
Returns the table of ssl hello supported versions set by the client.
119119

120-
Return `nil` when then the extension does not exist.
120+
Return `nil` when the extension does not exist.
121121

122122
In case of errors, it returns `nil` and a string describing the error.
123123

lib/ngx/ssl/proxysslcert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
209209

210210
[Back to TOC](#table-of-contents)
211211

212-
See AlsoCopyright
212+
See Also
213213
========
214214
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
215215
* the [proxy_ssl_certificate_by_lua*](https://github.com/openresty/lua-nginx-module/#proxy_ssl_certificate_by_lua_block) directive.

lib/ngx/ssl/proxysslverify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
178178

179179
[Back to TOC](#table-of-contents)
180180

181-
See AlsoCopyright
181+
See Also
182182
========
183183
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
184184
* the [proxy_ssl_verify_by_lua*](https://github.com/openresty/lua-nginx-module/#proxy_ssl_verify_by_lua_block) directive.

0 commit comments

Comments
 (0)