Merge pull request #12627 from vijaypushkin/patch-1

Corrected the name of Capitalization Styles
This commit is contained in:
Shelley Vohr 2018-04-20 09:49:28 -04:00 committed by GitHub
commit f9ee24f8f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,8 @@ formatted correctly.
Electron APIs uses the same capitalization scheme as Node.js: Electron APIs uses the same capitalization scheme as Node.js:
- When the module itself is a class like `BrowserWindow`, use `CamelCase`. - When the module itself is a class like `BrowserWindow`, use `PascalCase`.
- When the module is a set of APIs, like `globalShortcut`, use `mixedCase`. - When the module is a set of APIs, like `globalShortcut`, use `camelCase`.
- When the API is a property of object, and it is complex enough to be in a - When the API is a property of object, and it is complex enough to be in a
separate chapter like `win.webContents`, use `mixedCase`. separate chapter like `win.webContents`, use `mixedCase`.
- For other non-module APIs, use natural titles, like `<webview> Tag` or - For other non-module APIs, use natural titles, like `<webview> Tag` or