summaryrefslogtreecommitdiffhomepage
path: root/javascript.html.markdown
diff options
context:
space:
mode:
authorSawyer Charles <xssc@users.noreply.github.com>2015-10-19 16:00:22 -0500
committerSawyer Charles <xssc@users.noreply.github.com>2015-10-19 16:00:22 -0500
commit7fdce9215acde388da6de41f524aefa8bfb05532 (patch)
treedd7db48e94108c32c8aea204d181b16135cf3128 /javascript.html.markdown
parentd78518288bd8d37714ff00355274a7527e0e5a66 (diff)
Fixed bracket placement
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r--javascript.html.markdown7
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