Skip to content

Commit 071bb0f

Browse files
yandongxiaoagentzh
authored andcommitted
doc: typo fix: fix core constants "NGX_XX" to "ngx.XX".
1 parent 468403e commit 071bb0f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3407,7 +3407,7 @@ Core constants
34073407
ngx.DECLINED (-5)
34083408
```
34093409

3410-
Note that only three of these constants are utilized by the [Nginx API for Lua](#nginx-api-for-lua) (i.e., [ngx.exit](#ngxexit) accepts `NGX_OK`, `NGX_ERROR`, and `NGX_DECLINED` as input).
3410+
Note that only three of these constants are utilized by the [Nginx API for Lua](#nginx-api-for-lua) (i.e., [ngx.exit](#ngxexit) accepts `ngx.OK`, `ngx.ERROR`, and `ngx.DECLINED` as input).
34113411

34123412
```lua
34133413

@@ -5332,7 +5332,7 @@ Number literals can be used directly as the argument, for instance,
53325332
ngx.exit(501)
53335333
```
53345334

5335-
Note that while this method accepts all [HTTP status constants](#http-status-constants) as input, it only accepts `NGX_OK` and `NGX_ERROR` of the [core constants](#core-constants).
5335+
Note that while this method accepts all [HTTP status constants](#http-status-constants) as input, it only accepts `ngx.OK` and `ngx.ERROR` of the [core constants](#core-constants).
53365336

53375337
Also note that this method call terminates the processing of the current request and that it is recommended that a coding style that combines this method call with the `return` statement, i.e., `return ngx.exit(...)` be used to reinforce the fact that the request processing is being terminated.
53385338

doc/HttpLuaModule.wiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,7 +2755,7 @@ This API requires a relatively expensive metamethod call and it is recommended t
27552755
ngx.DECLINED (-5)
27562756
</geshi>
27572757
2758-
Note that only three of these constants are utilized by the [[#Nginx API for Lua|Nginx API for Lua]] (i.e., [[#ngx.exit|ngx.exit]] accepts <code>NGX_OK</code>, <code>NGX_ERROR</code>, and <code>NGX_DECLINED</code> as input).
2758+
Note that only three of these constants are utilized by the [[#Nginx API for Lua|Nginx API for Lua]] (i.e., [[#ngx.exit|ngx.exit]] accepts <code>ngx.OK</code>, <code>ngx.ERROR</code>, and <code>ngx.DECLINED</code> as input).
27592759
27602760
<geshi lang="lua">
27612761
ngx.null
@@ -4449,7 +4449,7 @@ Number literals can be used directly as the argument, for instance,
44494449
ngx.exit(501)
44504450
</geshi>
44514451
4452-
Note that while this method accepts all [[#HTTP status constants|HTTP status constants]] as input, it only accepts <code>NGX_OK</code> and <code>NGX_ERROR</code> of the [[#core constants|core constants]].
4452+
Note that while this method accepts all [[#HTTP status constants|HTTP status constants]] as input, it only accepts <code>ngx.OK</code> and <code>ngx.ERROR</code> of the [[#core constants|core constants]].
44534453
44544454
Also note that this method call terminates the processing of the current request and that it is recommended that a coding style that combines this method call with the <code>return</code> statement, i.e., <code>return ngx.exit(...)</code> be used to reinforce the fact that the request processing is being terminated.
44554455

0 commit comments

Comments
 (0)