Skip to content

Commit 616dca2

Browse files
committed
Merge pull request chuanxshi#89 from CatTail/master
Change single var pattern comma place
2 parents 97bd0b0 + 68fd837 commit 616dca2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎general-patterns/single-var-pattern.html‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717
* 4. Is less code (to type and to transfer over the wire)
1818
*/
1919

20-
functionfunc(){
21-
vara=1,
22-
b=2,
23-
sum=a+b,
24-
myobject={},
25-
i,
26-
j;
20+
functionfunc(){
21+
vara=1
22+
,b=2
23+
,sum=a+b
24+
,myobject={}
25+
,i
26+
j;
2727

28-
// function body...
29-
}
28+
// function body...
29+
}
3030

3131
functionupdateElement(){
32-
varel=document.getElementById("result"),
33-
style=el.style;
32+
varel=document.getElementById("result")
33+
,style=el.style;
3434
// do something with el and style...
3535
}
3636

0 commit comments

Comments
(0)