From fb65b9ae04d6215db4825fc07e4f90eac07b4ed7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 19 Jan 2016 10:15:36 -0800 Subject: [PATCH] [guide] fix a few IIFE examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4e2a278..b5b4494d 100644 --- a/README.md +++ b/README.md @@ -1936,13 +1936,13 @@ Other Style Guides (() => { const name = 'Skywalker'; return name; - })(); + }()); // good (guards against the function becoming an argument when two files with IIFEs are concatenated) ;(() => { const name = 'Skywalker'; return name; - })(); + }()); ``` [Read more](http://stackoverflow.com/questions/7365172/semicolon-before-self-invoking-function/7365214%237365214).