doc/coding_style.md
changeset 9902 34a670e2bcfd
parent 9862 54147de1d1b1
child 9903 8c831c76fc94
equal deleted inserted replaced
9901:a471d4cfec5e 9902: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):