Skip to content

Commit

Permalink
Merge pull request chuanxshi#86 from pmw57/patch-1
Browse files Browse the repository at this point in the history
Aligning case with switch, as according to the style convention.
  • Loading branch information
chuanxshi committed Aug 2, 2013
2 parents 9cda6f7 + f9d9f30 commit fe306fd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions general-patterns/switch-pattern.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
var inspect_me = 0,
result = '';
switch (inspect_me) {
case 0:
result = "zero";
break;
case 1:
result = "one";
break;
default:
result = "unknown";
case 0:
result = "zero";
break;
case 1:
result = "one";
break;
default:
result = "unknown";
}

// References
// http://net.tutsplus.com/tutorials/javascript-ajax/the-essentials-of-writing-high-quality-javascript/
</script>
</body>
</html>
</html>

0 comments on commit fe306fd

Please sign in to comment.