From 1eed1632778b4e1fc05c037f3b157b7b6514dc95 Mon Sep 17 00:00:00 2001 From: Dimitri Sabadie Date: Sun, 22 Sep 2019 18:13:52 +0200 Subject: [PATCH] Doc typo. --- src/spline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spline.rs b/src/spline.rs index 58b5e02..c7b7749 100644 --- a/src/spline.rs +++ b/src/spline.rs @@ -42,7 +42,7 @@ impl Spline { /// # Note on iterators /// /// It’s valid to use any iterator that implements `Iterator>`. However, you should - /// use [`Spline::from_vec`] if you are passing a [`Vec`]. This will remove dynamic allocations. + /// use [`Spline::from_vec`] if you are passing a [`Vec`]. pub fn from_iter(iter: I) -> Self where I: Iterator>, T: PartialOrd { Self::from_vec(iter.collect()) } @@ -159,7 +159,7 @@ impl Spline { }) } - /// Remove a ke from the spline. + /// Remove a key from the spline. pub fn remove(&mut self, index: usize) -> Option> { if index >= self.0.len() { None