lua-style-guide icon indicating copy to clipboard operation
lua-style-guide copied to clipboard

Fix inconsistent table literal padding

Open firoxer opened this issue 6 years ago • 0 comments

Looking at the examples, table literals should not be padded (incorrect t = { a = 1 } vs correct t = {a=1}). There was an example in the OOP section that did have padding, so I took it away to make it consistent with the other examples.

Perhaps this padding-vs-no-padding recommendation could be noted explicitly in the style guide?

firoxer avatar Apr 07 '19 13:04 firoxer