Fix semicolons in 1.11.1 (Introduction: callbacks)

This commit is contained in:
Vse Mozhe Buty 2020-10-30 18:01:51 +02:00 committed by GitHub
parent f2078b1d80
commit 2f822c8ec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 { } else {
// ...continue after all scripts are loaded (*) // ...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. See? It does the same, and there's no deep nesting now because we made every action a separate top-level function.