Skip to content

Commit

Permalink
Fixed bracket placement
Browse files Browse the repository at this point in the history
  • Loading branch information
xssc committed Oct 19, 2015
1 parent d785182 commit 7fdce92
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions javascript.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,9 @@ myFunction("foo"); // = "FOO"
// Note that the value to be returned must start on the same line as the
// `return` keyword, otherwise you'll always return `undefined` due to
// automatic semicolon insertion. Watch out for this when using Allman style.
function myFunction()
{
function myFunction(){
return // <- semicolon automatically inserted here
{
thisIsAn: 'object literal'
}
{thisIsAn: 'object literal'}
}
myFunction(); // = undefined

Expand Down

0 comments on commit 7fdce92

Please sign in to comment.