diff --git a/README.md b/README.md index 536ea8e7fc..d1513147db 100644 --- a/README.md +++ b/README.md @@ -777,7 +777,7 @@ var x = y + 5; ``` - - Place an empty newline at the end of the file. + - End files with a single newline character. ```javascript // bad @@ -787,11 +787,18 @@ ``` ```javascript - // good + // bad (function(global) { // ...stuff... - })(this); + })(this);↵ + ↵ + ``` + ```javascript + // good + (function(global) { + // ...stuff... + })(this);↵ ``` - Use indentation when making long method chains.