Skip to content

Commit

Permalink
Merge pull request #9558 from jamesgeorge007/hotfix/fix-typo
Browse files Browse the repository at this point in the history
chore: Minor typographical fixes
  • Loading branch information
sokra committed Aug 12, 2019
2 parents 133862b + 72ee5a3 commit e62b643
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions lib/ChunkGroup.js
Expand Up @@ -70,12 +70,12 @@ class ChunkGroup {
this.chunks = [];
/** @type {OriginRecord[]} */
this.origins = [];
/** Indicies in top-down order */
/** Indices in top-down order */
/** @private @type {Map<Module, number>} */
this._moduleIndicies = new Map();
/** Indicies in bottom-up order */
this._moduleIndices = new Map();
/** Indices in bottom-up order */
/** @private @type {Map<Module, number>} */
this._moduleIndicies2 = new Map();
this._moduleIndices2 = new Map();
}

/**
Expand Down Expand Up @@ -174,7 +174,7 @@ class ChunkGroup {
/**
* add a chunk into ChunkGroup. Is pushed on or prepended
* @param {Chunk} chunk chunk being pushed into ChunkGroupS
* @returns {boolean} returns true if chunk addition was ssuccesful.
* @returns {boolean} returns true if chunk addition was successful.
*/
pushChunk(chunk) {
const oldIdx = this.chunks.indexOf(chunk);
Expand All @@ -187,8 +187,8 @@ class ChunkGroup {

/**
* @param {Chunk} oldChunk chunk to be replaced
* @param {Chunk} newChunk New chunkt that will be replaced
* @returns {boolean} rerturns true for
* @param {Chunk} newChunk New chunk that will be replaced with
* @returns {boolean} returns true if the replacement was successful
*/
replaceChunk(oldChunk, newChunk) {
const oldIdx = this.chunks.indexOf(oldChunk);
Expand Down Expand Up @@ -369,7 +369,7 @@ class ChunkGroup {

/**
* we need to iterate again over the children
* to remove this from the childs parents.
* to remove this from the child's parents.
* This can not be done in the above loop
* as it is not guaranteed that `this._parents` contains anything.
*/
Expand Down Expand Up @@ -460,7 +460,7 @@ class ChunkGroup {
* @returns {void}
*/
setModuleIndex(module, index) {
this._moduleIndicies.set(module, index);
this._moduleIndices.set(module, index);
}

/**
Expand All @@ -469,7 +469,7 @@ class ChunkGroup {
* @returns {number} index
*/
getModuleIndex(module) {
return this._moduleIndicies.get(module);
return this._moduleIndices.get(module);
}

/**
Expand All @@ -479,7 +479,7 @@ class ChunkGroup {
* @returns {void}
*/
setModuleIndex2(module, index) {
this._moduleIndicies2.set(module, index);
this._moduleIndices2.set(module, index);
}

/**
Expand All @@ -488,7 +488,7 @@ class ChunkGroup {
* @returns {number} index
*/
getModuleIndex2(module) {
return this._moduleIndicies2.get(module);
return this._moduleIndices2.get(module);
}

checkConstraints() {
Expand Down
4 changes: 2 additions & 2 deletions lib/Entrypoint.js
Expand Up @@ -52,8 +52,8 @@ class Entrypoint extends ChunkGroup {

/**
* @param {Chunk} oldChunk chunk to be replaced
* @param {Chunk} newChunk New chunkt that will be replaced
* @returns {boolean} rerturns true for
* @param {Chunk} newChunk New chunk that will be replaced with
* @returns {boolean} returns true if the replacement was successful
*/
replaceChunk(oldChunk, newChunk) {
if (this.runtimeChunk === oldChunk) this.runtimeChunk = newChunk;
Expand Down

0 comments on commit e62b643

Please sign in to comment.