Skip to content

Commit 5e66561

Browse files
committed
Rustdoc clippy and typo fixes
1 parent f09c219 commit 5e66561

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/indexmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ where
11251125
/// Remove the key-value pair equivalent to `key` and return its value.
11261126
///
11271127
/// Like `Vec::swap_remove`, the pair is removed by swapping it with the last element of the map
1128-
/// and popping it off. **This perturbs the postion of what used to be the last element!**
1128+
/// and popping it off. **This perturbs the position of what used to be the last element!**
11291129
///
11301130
/// Return `None` if `key` is not in map.
11311131
///

src/mpmc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
//! not.
6868
//! - All execution times are in clock cycles. 1 clock cycle = 125 ns.
6969
//! - Execution time is *dependent* of `mem::size_of::<T>()`. Both operations include one
70-
//! `memcpy(T)` in their successful path.
70+
//! `memcpy(T)` in their successful path.
7171
//! - The optimization level is indicated in parentheses.
7272
//! - The numbers reported correspond to the successful path (i.e. `Some` is returned by `dequeue`
73-
//! and `Ok` is returned by `enqueue`).
73+
//! and `Ok` is returned by `enqueue`).
7474
//!
7575
//! # Portability
7676
//!

src/spsc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
//!
9393
//! - All execution times are in clock cycles. 1 clock cycle = 125 ns.
9494
//! - Execution time is *dependent* of `mem::size_of::<T>()`. Both operations include one
95-
//! `memcpy(T)` in their successful path.
95+
//! `memcpy(T)` in their successful path.
9696
//! - The optimization level is indicated in the first row.
9797
//! - The numbers reported correspond to the successful path (i.e. `Some` is returned by `dequeue`
98-
//! and `Ok` is returned by `enqueue`).
98+
//! and `Ok` is returned by `enqueue`).
9999
100100
use core::{borrow::Borrow, cell::UnsafeCell, fmt, hash, mem::MaybeUninit, ptr};
101101

src/string/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -852,9 +852,9 @@ pub fn format<const N: usize>(args: Arguments<'_>) -> Result<String<N>, fmt::Err
852852
/// There are two possible error cases. Both return the unit type [`core::fmt::Error`].
853853
///
854854
/// - In case the formatting exceeds the string's capacity. This error does not exist in
855-
/// the standard library as the string would just grow.
855+
/// the standard library as the string would just grow.
856856
/// - If a formatting trait implementation returns an error. The standard library panics
857-
/// in this case.
857+
/// in this case.
858858
///
859859
/// # Examples
860860
///
@@ -1102,7 +1102,7 @@ mod tests {
11021102
match s.pop() {
11031103
Some(c) => {
11041104
assert_eq!(s.len(), 1);
1105-
assert_eq!(c, '\u{0301}'); // accute accent of e
1105+
assert_eq!(c, '\u{0301}'); // acute accent of e
11061106
}
11071107
None => panic!(),
11081108
};

0 commit comments

Comments
 (0)