Software /
code /
prosody
Changeset
9900:f2104b36f673
doc/coding_style: The codebase uses semicolons
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2019 04:00:55 +0100 |
parents | 9899:8c831c76fc94 |
children | 9901:c8b75239846c |
files | doc/coding_style.md |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/coding_style.md Sat Mar 23 03:56:55 2019 +0100 +++ b/doc/coding_style.md Sat Mar 23 04:00:55 2019 +0100 @@ -451,17 +451,17 @@ 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