From 2f822c8ec34507de18356556c1e96a56f4beb446 Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Fri, 30 Oct 2020 18:01:51 +0200 Subject: [PATCH] Fix semicolons in 1.11.1 (Introduction: callbacks) --- 1-js/11-async/01-callbacks/article.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/1-js/11-async/01-callbacks/article.md b/1-js/11-async/01-callbacks/article.md index 9d1a260d..344d92b7 100644 --- a/1-js/11-async/01-callbacks/article.md +++ b/1-js/11-async/01-callbacks/article.md @@ -146,7 +146,7 @@ loadScript('/my/script.js', function(script) { }); */!* - }) + }); }); ``` @@ -223,7 +223,7 @@ loadScript('1.js', function(error, script) { }); } - }) + }); } }); ``` @@ -256,7 +256,7 @@ loadScript('1.js', function(error, script) { } }); } - }) + }); } }); --> @@ -296,7 +296,7 @@ function step3(error, script) { } else { // ...continue after all scripts are loaded (*) } -}; +} ``` See? It does the same, and there's no deep nesting now because we made every action a separate top-level function.