Skip to content

Commit ccc9e1a

Browse files
mfedderlytwelch
andauthored
Small fixes I've found along the way (#2675)
Co-authored-by: Tim Welch <[email protected]>
1 parent 1ccf197 commit ccc9e1a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/turf-line-offset/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test("turf-line-offset - Throws Errors", (t) => {
5555
[0, 0],
5656
]);
5757
t.throws(() => lineOffset(), /geojson is required/);
58-
t.throws(() => lineOffset(line, /offset is required/));
58+
t.throws(() => lineOffset(line), /distance is required/);
5959
t.end();
6060
});
6161

packages/turf-point-to-line-distance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ minimum distance between the point and any segment of the `LineString`.
1515

1616
* `options.units` **[string][7]** can be anything supported by turf/convertLength
1717
(ex: degrees, radians, miles, or kilometers) (optional, default `"kilometers"`)
18-
* `options.method` **[string][7]** wether to calculate the distance based on geodesic (spheroid) or
18+
* `options.method` **[string][7]** whether to calculate the distance based on geodesic (spheroid) or
1919
planar (flat) method. Valid options are 'geodesic' or 'planar'. (optional, default `"geodesic"`)
2020

2121
### Examples

packages/turf-point-to-line-distance/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { rhumbDistance as getPlanarDistance } from "@turf/rhumb-distance";
2323
* @param {Object} [options={}] Optional parameters
2424
* @param {string} [options.units="kilometers"] can be anything supported by turf/convertLength
2525
* (ex: degrees, radians, miles, or kilometers)
26-
* @param {string} [options.method="geodesic"] wether to calculate the distance based on geodesic (spheroid) or
26+
* @param {string} [options.method="geodesic"] whether to calculate the distance based on geodesic (spheroid) or
2727
* planar (flat) method. Valid options are 'geodesic' or 'planar'.
2828
* @returns {number} distance between point and line
2929
* @example

0 commit comments

Comments
 (0)