From 986d8ba57bee751a9e25c159a2b977b690478dbf Mon Sep 17 00:00:00 2001 From: Kasim Tan Date: Fri, 3 Jun 2016 02:32:30 -0700 Subject: [PATCH] Fix comment typos Summary: Closes https://github.com/facebook/react-native/pull/7901 Differential Revision: D3384624 Pulled By: javache fbshipit-source-id: 741343dec5406af1855624069dd8dc426a93bdb3 --- bundle/output/unbundle/util.js | 2 +- rnpm/link/src/groupFilesByType.js | 2 +- upgrade/upgrade.js | 2 +- util/isPackagerRunning.js | 4 ++-- util/parseCommandLine.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bundle/output/unbundle/util.js b/bundle/output/unbundle/util.js index ce4697eb9..d4504dfbd 100644 --- a/bundle/output/unbundle/util.js +++ b/bundle/output/unbundle/util.js @@ -17,7 +17,7 @@ function lineToLineSourceMap(source, filename) { const firstLine = 'AAAA;'; // Most other lines in our mappings are all zeros (for module, column etc) - // except for the lineno mappinp: curLineno - prevLineno = 1; Which is C. + // except for the lineno mapping: curLineno - prevLineno = 1; Which is C. const line = 'AACA;'; return { diff --git a/rnpm/link/src/groupFilesByType.js b/rnpm/link/src/groupFilesByType.js index ddf0df6db..5dc692e1c 100644 --- a/rnpm/link/src/groupFilesByType.js +++ b/rnpm/link/src/groupFilesByType.js @@ -2,7 +2,7 @@ const groupBy = require('lodash').groupBy; const mime = require('mime'); /** - * Since there are no officialy registered MIME types + * Since there are no officially registered MIME types * for ttf/otf yet http://www.iana.org/assignments/media-types/media-types.xhtml, * we define two non-standard ones for the sake of parsing */ diff --git a/upgrade/upgrade.js b/upgrade/upgrade.js index 03d17d7fb..aaf6c01ce 100644 --- a/upgrade/upgrade.js +++ b/upgrade/upgrade.js @@ -45,7 +45,7 @@ module.exports = function upgrade(args, config) { ) ); - // >= v0.21.0, we require react to be a peer depdendency + // >= v0.21.0, we require react to be a peer dependency if (semver.gte(v, '0.21.0') && !pak.dependencies['react']) { console.log( chalk.yellow( diff --git a/util/isPackagerRunning.js b/util/isPackagerRunning.js index ae8950a8b..82828c1af 100644 --- a/util/isPackagerRunning.js +++ b/util/isPackagerRunning.js @@ -11,12 +11,12 @@ const fetch = require('node-fetch'); /** - * Indicates whether or not the packager is running. It ruturns a promise that + * Indicates whether or not the packager is running. It returns a promise that * when fulfilled can returns one out of these possible values: * - `running`: the packager is running * - `not_running`: the packager nor any process is running on the expected * port. - * - `unrecognized`: one other process is running on the port ew expect the + * - `unrecognized`: one other process is running on the port we expect the * packager to be running. */ function isPackagerRunning() { diff --git a/util/parseCommandLine.js b/util/parseCommandLine.js index 04490f67a..b373ddad4 100644 --- a/util/parseCommandLine.js +++ b/util/parseCommandLine.js @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. * * Wrapper on-top of `optimist` in order to properly support boolean flags - * and have a slightly less akward API. + * and have a slightly less awkward API. * * Usage example: * var argv = parseCommandLine([{