Software /
code /
prosody
Comparison
doc/coding_style.md @ 9898:34a670e2bcfd
doc/coding_style: remove superfulous bracket in example
author | Maxime “pep” Buquet <pep@bouah.net> |
---|---|
date | Sat, 23 Mar 2019 02:27:45 +0000 |
parent | 9858:54147de1d1b1 |
child | 9899:8c831c76fc94 |
comparison
equal
deleted
inserted
replaced
9897:a471d4cfec5e | 9898:34a670e2bcfd |
---|---|
129 | 129 |
130 * When creating a table, prefer populating its fields all at once, if possible: | 130 * When creating a table, prefer populating its fields all at once, if possible: |
131 | 131 |
132 ```lua | 132 ```lua |
133 local player = { name = "Jack", class = "Rogue" } | 133 local player = { name = "Jack", class = "Rogue" } |
134 } | |
135 ``` | 134 ``` |
136 | 135 |
137 * Items should be separated by commas. If there are many items, put each | 136 * Items should be separated by commas. If there are many items, put each |
138 key/value on a separate line and use a semi-colon after each item (including | 137 key/value on a separate line and use a semi-colon after each item (including |
139 the last one): | 138 the last one): |