aboutsummaryrefslogtreecommitdiffstats
path: root/doc/coding_style.md
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
commit95314bb2be435c6b7527675d08c53ea8809b0690 (patch)
treee7e262cc959d2201e5fced9c834144d57b64c120 /doc/coding_style.md
parent7aab0c40a49c5f6a2008646f636b19290d2abfe4 (diff)
downloadprosody-95314bb2be435c6b7527675d08c53ea8809b0690.tar.gz
prosody-95314bb2be435c6b7527675d08c53ea8809b0690.zip
doc/coding_style: The codebase uses semicolons
Diffstat (limited to 'doc/coding_style.md')
-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