Update CODE_STYLE.md (#403)

This commit is contained in:
WenMing 2019-08-13 22:01:14 +08:00 committed by GitHub
parent dd3329fc7b
commit b464b714a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
```