Skip to content

Commit

Permalink
Fix minor typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored and cmyr committed Jul 19, 2023
1 parent b22ba21 commit 588b184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub trait ParamCurveFit {
/// to derive the moments needed for curve fitting.
///
/// A default implementation is proved which does quadrature integration
/// with Green's theorem, in terms of samples evaulated with
/// with Green's theorem, in terms of samples evaluated with
/// [`sample_pt_deriv`].
///
/// [`sample_pt_deriv`]: ParamCurveFit::sample_pt_deriv
Expand Down Expand Up @@ -284,7 +284,7 @@ impl CurveDist {
/// If distance exceeds stated accuracy, can return `None`. Note that
/// `acc2` is the square of the target.
///
/// Returns the squre of the error, which is intended to be a good
/// Returns the square of the error, which is intended to be a good
/// approximation of the Fréchet distance.
fn eval_ray(&self, c: CubicBez, acc2: f64) -> Option<f64> {
let mut max_err2 = 0.0;
Expand Down

0 comments on commit 588b184

Please sign in to comment.