Fixed bracket placement

This commit is contained in:
Sawyer Charles 2015-10-19 16:00:22 -05:00
parent d78518288b
commit 7fdce9215a

View File

@ -291,12 +291,9 @@ myFunction("foo"); // = "FOO"
// Note that the value to be returned must start on the same line as the // 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 // `return` keyword, otherwise you'll always return `undefined` due to
// automatic semicolon insertion. Watch out for this when using Allman style. // automatic semicolon insertion. Watch out for this when using Allman style.
function myFunction() function myFunction(){
{
return // <- semicolon automatically inserted here return // <- semicolon automatically inserted here
{ {thisIsAn: 'object literal'}
thisIsAn: 'object literal'
}
} }
myFunction(); // = undefined myFunction(); // = undefined