docs: fix typos (#3404)

This commit is contained in:
Kitten King
2019-07-25 20:48:23 +05:30
committed by SpaceEEC
parent 651ff81bd5
commit d8516efa36
7 changed files with 8 additions and 8 deletions

View File

@@ -73,7 +73,7 @@ class ShardingManager extends EventEmitter {
if (this.shardList.length < 1) throw new RangeError('CLIENT_INVALID_OPTION', 'shardList', 'at least 1 ID.');
if (this.shardList.some(shardID => typeof shardID !== 'number' || isNaN(shardID) ||
!Number.isInteger(shardID) || shardID < 0)) {
throw new TypeError('CLIENT_INVALID_OPTION', 'shardList', 'an array of postive integers.');
throw new TypeError('CLIENT_INVALID_OPTION', 'shardList', 'an array of positive integers.');
}
}