diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index 87f6411e6658..a41b8fae9f22 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -52,7 +52,7 @@ namespace api { namespace { -// The DeprecatedOptionsCheckCallback funtion which is implemented in JavaScript +// This function is implemented in JavaScript using DeprecatedOptionsCheckCallback = base::Callback)>; DeprecatedOptionsCheckCallback g_deprecated_options_check; diff --git a/lib/browser/api/browser-window.js b/lib/browser/api/browser-window.js index 9645f855eed1..fe9d4415d534 100644 --- a/lib/browser/api/browser-window.js +++ b/lib/browser/api/browser-window.js @@ -259,7 +259,7 @@ const checkForDeprecatedOptions = function(options) { keysToCheck = keysToCheck.concat(Object.keys(options.webPreferences)); } - // Check options for keys with hypens in them + // Check options for keys with hyphens in them let deprecatedKey = keysToCheck.filter(isDeprecatedKey)[0]; if (deprecatedKey) { try {