Skip to content

Commit

Permalink
Curly braces section improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
brentguf authored Jan 19, 2018
1 parent 6109448 commit 8361374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 1-js/03-code-quality/02-coding-style/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Now let's discuss the rules and reasons for them in detail.

Nothing is "carved in stone" here. Everything is optional and can be changed: these are coding rules, not religious dogmas.

### Figure brackets
### Curly braces

In most JavaScript projects figure brackets are written on the same line, not on the new line. A so-called "egyptian" style. There's also a space before an opening bracket.
In most JavaScript projects curly braces are written on the same line as the corresponding keyword, not on the new line, a so-called "Egyptian" style. There's also a space before an opening bracket.

Like this:

Expand Down

0 comments on commit 8361374

Please sign in to comment.