aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-03-23 04:00:55 +0100
committerKim Alvefur <zash@zash.se>2019-03-23 04:00:55 +0100
commit268e487245b73baee4f8d8add6d12707d278f371 (patch)
treee7e262cc959d2201e5fced9c834144d57b64c120 /doc
parentfc06f69a4f3b22c97cdca1114cca191aa5e259ea (diff)
downloadprosody-268e487245b73baee4f8d8add6d12707d278f371.tar.gz
prosody-268e487245b73baee4f8d8add6d12707d278f371.zip
doc/coding_style: The codebase uses semicolons
Diffstat (limited to 'doc')
-rw-r--r--doc/coding_style.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/coding_style.md b/doc/coding_style.md
index 17b7c037..6ca527fa 100644
--- a/doc/coding_style.md
+++ b/doc/coding_style.md
@@ -451,17 +451,17 @@ if test < 1 and do_complicated_function(test) == false or seven == 8 and nine ==
end
```
-* Separate statements onto multiple lines. Do not use semicolons as statement terminators.
+* Separate statements onto multiple lines. Use semicolons as statement terminators.
```lua
-- bad
-local whatever = "sure";
-a = 1; b = 2
+local whatever = "sure"
+a = 1 b = 2
-- good
-local whatever = "sure"
-a = 1
-b = 2
+local whatever = "sure";
+a = 1;
+b = 2;
```
## Spacing