diff options
| author | Sawyer Charles <xssc@users.noreply.github.com> | 2015-10-19 16:00:22 -0500 | 
|---|---|---|
| committer | Sawyer Charles <xssc@users.noreply.github.com> | 2015-10-19 16:00:22 -0500 | 
| commit | 7fdce9215acde388da6de41f524aefa8bfb05532 (patch) | |
| tree | dd7db48e94108c32c8aea204d181b16135cf3128 /javascript.html.markdown | |
| parent | d78518288bd8d37714ff00355274a7527e0e5a66 (diff) | |
Fixed bracket placement
Diffstat (limited to 'javascript.html.markdown')
| -rw-r--r-- | javascript.html.markdown | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index 81dc09a9..a119be88 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -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  | 
