diff --git a/src/lib.rs b/src/lib.rs index af976eb..eca88d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,7 +180,6 @@ use core::mem::ManuallyDrop; /// example, `smallvec![Rc::new(1); 5]` will create a vector of five references /// to the same boxed integer value, not five references pointing to independently /// boxed integers. - #[macro_export] macro_rules! smallvec { // count helper: transform any expression into 1 @@ -1536,7 +1535,7 @@ impl SmallVec { /// Retains only the elements specified by the predicate. /// /// This method is identical in behaviour to [`retain`]; it is included only - /// to maintain api-compatability with `std::Vec`, where the methods are + /// to maintain api-compatibility with `std::Vec`, where the methods are /// separate for historical reasons. pub fn retain_mut bool>(&mut self, f: F) { self.retain(f) diff --git a/src/tests.rs b/src/tests.rs index d04771e..9ccaf32 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -752,7 +752,7 @@ fn test_from_vec() { #[test] fn test_retain() { - // Test inline data storate + // Test inline data storage let mut sv: SmallVec<[i32; 5]> = SmallVec::from_slice(&[1, 2, 3, 3, 4]); sv.retain(|&mut i| i != 3); assert_eq!(sv.pop(), Some(4));