diff --git a/docs/tutorial/tutorial-2-first-app.md b/docs/tutorial/tutorial-2-first-app.md index 556c7e4b03e8e..0194e2b3be14d 100644 --- a/docs/tutorial/tutorial-2-first-app.md +++ b/docs/tutorial/tutorial-2-first-app.md @@ -274,7 +274,7 @@ calling `createWindow()` once its promise is fulfilled. You typically listen to Node.js events by using an emitter's `.on` function. ```diff -+ app.on('ready').then(() => { ++ app.on('ready', () => { - app.whenReady().then(() => { createWindow() })