Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two small typos #2675

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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), /distance 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
Loading