Skip to content

Commit 6c8751d

Browse files
authored
Merge pull request #373 from waywardmonkeys/v1-fix-typos
Fix typos
2 parents 174f4f0 + 36317fa commit 6c8751d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ use core::mem::ManuallyDrop;
180180
/// example, `smallvec![Rc::new(1); 5]` will create a vector of five references
181181
/// to the same boxed integer value, not five references pointing to independently
182182
/// boxed integers.
183-
184183
#[macro_export]
185184
macro_rules! smallvec {
186185
// count helper: transform any expression into 1
@@ -1536,7 +1535,7 @@ impl<A: Array> SmallVec<A> {
15361535
/// Retains only the elements specified by the predicate.
15371536
///
15381537
/// This method is identical in behaviour to [`retain`]; it is included only
1539-
/// to maintain api-compatability with `std::Vec`, where the methods are
1538+
/// to maintain api-compatibility with `std::Vec`, where the methods are
15401539
/// separate for historical reasons.
15411540
pub fn retain_mut<F: FnMut(&mut A::Item) -> bool>(&mut self, f: F) {
15421541
self.retain(f)

src/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ fn test_from_vec() {
752752

753753
#[test]
754754
fn test_retain() {
755-
// Test inline data storate
755+
// Test inline data storage
756756
let mut sv: SmallVec<[i32; 5]> = SmallVec::from_slice(&[1, 2, 3, 3, 4]);
757757
sv.retain(|&mut i| i != 3);
758758
assert_eq!(sv.pop(), Some(4));

0 commit comments

Comments
 (0)