diff --git a/docs/tutorial/application-architecture.md b/docs/tutorial/application-architecture.md index 209f2c834e0e..31c8c24e7f63 100644 --- a/docs/tutorial/application-architecture.md +++ b/docs/tutorial/application-architecture.md @@ -67,7 +67,7 @@ class. It is only available in the main process. // renderer process: const { BrowserWindow } = require('electron') -const myWindow = new BrowserWindow() +const win = new BrowserWindow() ``` Since communication between the processes is possible, a renderer process @@ -82,7 +82,7 @@ we'd use the remote as a middle-man: const { remote } = require('electron') const { BrowserWindow } = remote -const myWindow = new BrowserWindow() +const win = new BrowserWindow() ``` ## Using Node.js APIs diff --git a/docs/tutorial/progress-bar.md b/docs/tutorial/progress-bar.md index b2e447b5f266..6922b3464fbe 100644 --- a/docs/tutorial/progress-bar.md +++ b/docs/tutorial/progress-bar.md @@ -26,7 +26,7 @@ See the [API documentation for more options and modes][setprogressbar]. ```javascript const { BrowserWindow } = require('electron') -const myWindow = new BrowserWindow() +const win = new BrowserWindow() win.setProgressBar(0.5) ```