Fix more minor typos in comments
This commit is contained in:
parent
51ca692319
commit
460d3cb471
|
@ -219,7 +219,7 @@ export function delta<T>(before: ReadonlyArray<T>, after: ReadonlyArray<T>, comp
|
|||
* @param array The unsorted array.
|
||||
* @param compare A sort function for the elements.
|
||||
* @param n The number of elements to return.
|
||||
* @return The first n elemnts from array when sorted with compare.
|
||||
* @return The first n elements from array when sorted with compare.
|
||||
*/
|
||||
export function top<T>(array: ReadonlyArray<T>, compare: (a: T, b: T) => number, n: number): T[] {
|
||||
if (n === 0) {
|
||||
|
@ -241,7 +241,7 @@ export function top<T>(array: ReadonlyArray<T>, compare: (a: T, b: T) => number,
|
|||
* @param compare A sort function for the elements.
|
||||
* @param n The number of elements to return.
|
||||
* @param batch The number of elements to examine before yielding to the event loop.
|
||||
* @return The first n elemnts from array when sorted with compare.
|
||||
* @return The first n elements from array when sorted with compare.
|
||||
*/
|
||||
export function topAsync<T>(array: T[], compare: (a: T, b: T) => number, n: number, batch: number, token?: CancellationToken): Promise<T[]> {
|
||||
if (n === 0) {
|
||||
|
|
|
@ -357,8 +357,8 @@ export function matchesFuzzy(word: string, wordToMatchAgainst: string, enableSep
|
|||
}
|
||||
|
||||
/**
|
||||
* Match pattern againt word in a fuzzy way. As in IntelliSense and faster and more
|
||||
* powerfull than `matchesFuzzy`
|
||||
* Match pattern against word in a fuzzy way. As in IntelliSense and faster and more
|
||||
* powerful than `matchesFuzzy`
|
||||
*/
|
||||
export function matchesFuzzy2(pattern: string, word: string): IMatch[] | null {
|
||||
const score = fuzzyScore(pattern, pattern.toLowerCase(), 0, word, word.toLowerCase(), 0, true);
|
||||
|
|
|
@ -207,7 +207,7 @@ export namespace Language {
|
|||
export const locale = _locale;
|
||||
|
||||
/**
|
||||
* The translatios that are available through language packs.
|
||||
* The translations that are available through language packs.
|
||||
*/
|
||||
export const translationsConfigFile = _translationsConfigFile;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ export function isStringArray(value: unknown): value is string[] {
|
|||
*/
|
||||
export function isObject(obj: unknown): obj is Object {
|
||||
// The method can't do a type cast since there are type (like strings) which
|
||||
// are subclasses of any put not positvely matched by the function. Hence type
|
||||
// are subclasses of any put not positively matched by the function. Hence type
|
||||
// narrowing results in wrong results.
|
||||
return typeof obj === 'object'
|
||||
&& obj !== null
|
||||
|
|
Loading…
Reference in a new issue