Spelling fix

This commit is contained in:
Frederic Junod
2021-09-07 09:47:47 +02:00
parent e89b6c0a3f
commit 5c212008de
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ export function includes(arr, obj) {
*/
/**
* @param {Array<number>} arr Array in desccending order.
* @param {Array<number>} arr Array in descending order.
* @param {number} target Target.
* @param {number|NearestDirectionFunction} direction
* 0 means return the nearest,
@@ -206,7 +206,7 @@ export function equals(arr1, arr2) {
}
/**
* Sort the passed array such that the relative order of equal elements is preverved.
* Sort the passed array such that the relative order of equal elements is preserved.
* See https://en.wikipedia.org/wiki/Sorting_algorithm#Stability for details.
* @param {Array<*>} arr The array to sort (modifies original).
* @param {!function(*, *): number} compareFnc Comparison function.

View File

@@ -1247,7 +1247,7 @@ export function createBox() {
}
/**
* Get the drawing mode. The mode for mult-part geometries is the same as for
* Get the drawing mode. The mode for multi-part geometries is the same as for
* their single-part cousins.
* @param {import("../geom/GeometryType.js").default} type Geometry type.
* @return {Mode} Drawing mode.