Skip to content

Commit

Permalink
Small fixes I've found along the way
Browse files Browse the repository at this point in the history
  • Loading branch information
mfedderly committed Aug 6, 2024
1 parent cc680d3 commit e838dd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/turf-line-offset/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test("turf-line-offset - Throws Errors", (t) => {
[0, 0],
]);
t.throws(() => lineOffset(), /geojson is required/);
t.throws(() => lineOffset(line, /offset is required/));
t.throws(() => lineOffset(line), /offset is required/);
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion packages/turf-point-to-line-distance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ minimum distance between the point and any segment of the `LineString`.

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

### Examples
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-point-to-line-distance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { rhumbDistance as getPlanarDistance } from "@turf/rhumb-distance";
* @param {Object} [options={}] Optional parameters
* @param {string} [options.units="kilometers"] can be anything supported by turf/convertLength
* (ex: degrees, radians, miles, or kilometers)
* @param {string} [options.method="geodesic"] wether to calculate the distance based on geodesic (spheroid) or
* @param {string} [options.method="geodesic"] whether to calculate the distance based on geodesic (spheroid) or
* planar (flat) method. Valid options are 'geodesic' or 'planar'.
* @returns {number} distance between point and line
* @example
Expand Down

0 comments on commit e838dd8

Please sign in to comment.