Skip to content

Commit cd7ca8f

Browse files
committed
typo
1 parent 18ec919 commit cd7ca8f

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Diff for: README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ This is useful when working with a `Box<dyn Interpolator>`
6363
Instantiation is done by calling an interpolator's `new` method.
6464
For dimensionalities N ≥ 1, this executes a validation step, preventing runtime panics.
6565
After editing interpolator data,
66-
call [`Interpolator::validate`](https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.validate) to rerun these checks.
66+
call the InterpData's `validate` method
67+
or [`Interpolator::validate`](https://docs.rs/ninterp/latest/ninterp/trait.Interpolator.html#tymethod.validate)
68+
to rerun these checks.
6769

6870
To change the extrapolation setting, call `set_extrapolate`.
6971

@@ -89,12 +91,12 @@ for an example.
8991
An [`Extrapolate`](https://docs.rs/ninterp/latest/ninterp/enum.Extrapolate.html)
9092
setting must be provided in the `new` method.
9193
This controls what happens when a point is beyond the range of supplied coordinates.
92-
The following setttings are applicable for all interpolators:
94+
The following settings are applicable for all interpolators:
9395
- `Extrapolate::Fill(T)`
9496
- `Extrapolate::Clamp`
9597
- `Extrapolate::Error`
9698

97-
`Extrapolate::Enable` is valid for `Linear` in all dimensionalities.
99+
`Extrapolate::Enable` is valid for `Linear` for all dimensionalities.
98100

99101
If you are unsure which variant to choose, `Extrapolate::Error` is likely what you want.
100102

Diff for: src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
//! Instantiation is done by calling an interpolator's `new` method.
6666
//! For dimensionalities N ≥ 1, this executes a validation step, preventing runtime panics.
6767
//! After editing interpolator data,
68-
//! call [`Interpolator::validate`]
68+
//! call the InterpData's `validate` method
69+
//! or [`Interpolator::validate`]
6970
//! to rerun these checks.
7071
//!
7172
//! To change the extrapolation setting, call `set_extrapolate`.
@@ -86,12 +87,12 @@
8687
//! ## Extrapolation
8788
//! An [`Extrapolate`] setting must be provided in the `new` method.
8889
//! This controls what happens when a point is beyond the range of supplied coordinates.
89-
//! The following setttings are applicable for all interpolators:
90+
//! The following settings are applicable for all interpolators:
9091
//! - [`Extrapolate::Fill(T)`](`Extrapolate::Fill`)
9192
//! - [`Extrapolate::Clamp`]
9293
//! - [`Extrapolate::Error`]
9394
//!
94-
//! [`Extrapolate::Enable`] is valid for [`Linear`] in all dimensionalities.
95+
//! [`Extrapolate::Enable`] is valid for [`Linear`] for all dimensionalities.
9596
//!
9697
//! If you are unsure which variant to choose, [`Extrapolate::Error`] is likely what you want.
9798
//!

0 commit comments

Comments
 (0)