Merge pull request #9558 from jamesgeorge007/hotfix/fix-typo

chore: Minor typographical fixes
This commit is contained in:
Tobias Koppers 2019-08-12 10:22:11 +02:00 committed by GitHub
commit e62b6433de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -70,12 +70,12 @@ class ChunkGroup {
this.chunks = []; this.chunks = [];
/** @type {OriginRecord[]} */ /** @type {OriginRecord[]} */
this.origins = []; this.origins = [];
/** Indicies in top-down order */ /** Indices in top-down order */
/** @private @type {Map<Module, number>} */ /** @private @type {Map<Module, number>} */
this._moduleIndicies = new Map(); this._moduleIndices = new Map();
/** Indicies in bottom-up order */ /** Indices in bottom-up order */
/** @private @type {Map<Module, number>} */ /** @private @type {Map<Module, number>} */
this._moduleIndicies2 = new Map(); this._moduleIndices2 = new Map();
} }
/** /**
@ -174,7 +174,7 @@ class ChunkGroup {
/** /**
* add a chunk into ChunkGroup. Is pushed on or prepended * add a chunk into ChunkGroup. Is pushed on or prepended
* @param {Chunk} chunk chunk being pushed into ChunkGroupS * @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) { pushChunk(chunk) {
const oldIdx = this.chunks.indexOf(chunk); const oldIdx = this.chunks.indexOf(chunk);
@ -187,8 +187,8 @@ class ChunkGroup {
/** /**
* @param {Chunk} oldChunk chunk to be replaced * @param {Chunk} oldChunk chunk to be replaced
* @param {Chunk} newChunk New chunkt that will be replaced * @param {Chunk} newChunk New chunk that will be replaced with
* @returns {boolean} rerturns true for * @returns {boolean} returns true if the replacement was successful
*/ */
replaceChunk(oldChunk, newChunk) { replaceChunk(oldChunk, newChunk) {
const oldIdx = this.chunks.indexOf(oldChunk); const oldIdx = this.chunks.indexOf(oldChunk);
@ -369,7 +369,7 @@ class ChunkGroup {
/** /**
* we need to iterate again over the children * 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 * This can not be done in the above loop
* as it is not guaranteed that `this._parents` contains anything. * as it is not guaranteed that `this._parents` contains anything.
*/ */
@ -460,7 +460,7 @@ class ChunkGroup {
* @returns {void} * @returns {void}
*/ */
setModuleIndex(module, index) { setModuleIndex(module, index) {
this._moduleIndicies.set(module, index); this._moduleIndices.set(module, index);
} }
/** /**
@ -469,7 +469,7 @@ class ChunkGroup {
* @returns {number} index * @returns {number} index
*/ */
getModuleIndex(module) { getModuleIndex(module) {
return this._moduleIndicies.get(module); return this._moduleIndices.get(module);
} }
/** /**
@ -479,7 +479,7 @@ class ChunkGroup {
* @returns {void} * @returns {void}
*/ */
setModuleIndex2(module, index) { setModuleIndex2(module, index) {
this._moduleIndicies2.set(module, index); this._moduleIndices2.set(module, index);
} }
/** /**
@ -488,7 +488,7 @@ class ChunkGroup {
* @returns {number} index * @returns {number} index
*/ */
getModuleIndex2(module) { getModuleIndex2(module) {
return this._moduleIndicies2.get(module); return this._moduleIndices2.get(module);
} }
checkConstraints() { checkConstraints() {

View File

@ -52,8 +52,8 @@ class Entrypoint extends ChunkGroup {
/** /**
* @param {Chunk} oldChunk chunk to be replaced * @param {Chunk} oldChunk chunk to be replaced
* @param {Chunk} newChunk New chunkt that will be replaced * @param {Chunk} newChunk New chunk that will be replaced with
* @returns {boolean} rerturns true for * @returns {boolean} returns true if the replacement was successful
*/ */
replaceChunk(oldChunk, newChunk) { replaceChunk(oldChunk, newChunk) {
if (this.runtimeChunk === oldChunk) this.runtimeChunk = newChunk; if (this.runtimeChunk === oldChunk) this.runtimeChunk = newChunk;