diff --git a/README.md b/README.md index 536ea8e7..d1513147 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 @@ -786,12 +786,19 @@ })(this); ``` + ```javascript + // bad + (function(global) { + // ...stuff... + })(this);↵ + ↵ + ``` + ```javascript // good (function(global) { // ...stuff... - })(this); - + })(this);↵ ``` - Use indentation when making long method chains.