mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 03:58:02 +08:00
Update CODE_STYLE.md (#403)
This commit is contained in:
parent
dd3329fc7b
commit
b464b714a4
@ -1,4 +1,4 @@
|
||||
# Code Style of OpenResty
|
||||
# OpenResty Lua Coding Style Guide
|
||||
|
||||
## indentation
|
||||
Use 4 spaces as an indent in OpenResty, although Lua does not have such a grammar requirement.
|
||||
@ -203,7 +203,7 @@ local t = {1, 2, nil, 3}
|
||||
|
||||
If you must use null values, use `ngx.null` to indicate:
|
||||
```
|
||||
--No
|
||||
--Yes
|
||||
local t = {1, 2, ngx.null, 3}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user