aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/coding_style.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/coding_style.md b/doc/coding_style.md
index af1a2502..17b7c037 100644
--- a/doc/coding_style.md
+++ b/doc/coding_style.md
@@ -330,7 +330,7 @@ than if it says `check_version = function()` under some indentation level.
## Variable declaration
-* Always use `local` to declare variables.
+* Always use `local` to declare variables.
```lua
-- bad
@@ -446,8 +446,8 @@ if test < 1 and do_complicated_function(test) == false or seven == 8 and nine ==
-- good
if test < 1 and do_complicated_function(test) == false or seven == 8 and nine == 10 then
- do_other_complicated_function()
- return false
+ do_other_complicated_function()
+ return false
end
```
@@ -466,7 +466,7 @@ b = 2
## Spacing
-* Use a space after `--`.
+* Use a space after `--`.
```lua
--bad