mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 09:50:27 +00:00
Update coding style guidelines
This commit is contained in:
parent
b5d2b79a37
commit
19080f9958
@ -24,7 +24,8 @@ Multiline comments are used to introduce a block of code such as a function defi
|
||||
function demoFunction(param,more) {
|
||||
// Proper sentence capitalisation for comments
|
||||
if(condition == "something") {
|
||||
// No space between "if" and the brackets; always spaces around operators
|
||||
// No space between "if" and the brackets; always spaces around binary operators
|
||||
something = somethingElse;
|
||||
myOtherFunction(one,two); // No whitespace within function parameters
|
||||
do {
|
||||
myCondition.explore(); // Always use semicolons
|
||||
|
Loading…
Reference in New Issue
Block a user