Doc typo.
This commit is contained in:
parent
311efa5b26
commit
1eed163277
@ -42,7 +42,7 @@ impl<T, V> Spline<T, V> {
|
|||||||
/// # Note on iterators
|
/// # Note on iterators
|
||||||
///
|
///
|
||||||
/// It’s valid to use any iterator that implements `Iterator<Item = Key<T>>`. However, you should
|
/// It’s valid to use any iterator that implements `Iterator<Item = Key<T>>`. 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<I>(iter: I) -> Self where I: Iterator<Item = Key<T, V>>, T: PartialOrd {
|
pub fn from_iter<I>(iter: I) -> Self where I: Iterator<Item = Key<T, V>>, T: PartialOrd {
|
||||||
Self::from_vec(iter.collect())
|
Self::from_vec(iter.collect())
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ impl<T, V> Spline<T, V> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove a ke from the spline.
|
/// Remove a key from the spline.
|
||||||
pub fn remove(&mut self, index: usize) -> Option<Key<T, V>> {
|
pub fn remove(&mut self, index: usize) -> Option<Key<T, V>> {
|
||||||
if index >= self.0.len() {
|
if index >= self.0.len() {
|
||||||
None
|
None
|
||||||
|
Loading…
Reference in New Issue
Block a user