From cb32f443c9ea94c6b25f9c183776eebf8445c87e Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Wed, 18 Jan 2017 07:42:53 +0200 Subject: [PATCH] [guide] fix arrow IIFE call Currently, it throws. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d28041d..b8785cb8 100644 --- a/README.md +++ b/README.md @@ -2546,10 +2546,10 @@ Other Style Guides }()); // good, but legacy (guards against the function becoming an argument when two files with IIFEs are concatenated) - ;(() => { + ;((() => { const name = 'Skywalker'; return name; - }()); + })()); ``` [Read more](https://stackoverflow.com/questions/7365172/semicolon-before-self-invoking-function/7365214%237365214).