From 5c212008de85c920075f6b921c9bae797fc048f2 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 7 Sep 2021 09:47:47 +0200 Subject: [PATCH] Spelling fix --- src/ol/array.js | 4 ++-- src/ol/interaction/Draw.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/array.js b/src/ol/array.js index bc64e7829e..7a17fe0197 100644 --- a/src/ol/array.js +++ b/src/ol/array.js @@ -74,7 +74,7 @@ export function includes(arr, obj) { */ /** - * @param {Array} arr Array in desccending order. + * @param {Array} 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. diff --git a/src/ol/interaction/Draw.js b/src/ol/interaction/Draw.js index 87aaef1211..28f655bee0 100644 --- a/src/ol/interaction/Draw.js +++ b/src/ol/interaction/Draw.js @@ -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.