Skip to content

Commit

Permalink
Fix and improve docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Aug 3, 2022
1 parent ea91f18 commit 23973f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
//! - [`IndexSet`](struct.IndexSet.html) -- hash set
//! - [`LinearMap`](struct.LinearMap.html)
//! - [`Pool`](pool/struct.Pool.html) -- lock-free memory pool
//! - [`String`](struct.String.html)
//! - [`String`](crate::string::String)
//! - [`Vec`](struct.Vec.html)
//! - [`mpmc::Q*`](mpmc/index.html) -- multiple producer multiple consumer lock-free queue
//! - [`spsc::Queue`](spsc/struct.Queue.html) -- single producer single consumer lock-free queue
Expand Down
6 changes: 3 additions & 3 deletions src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,10 @@ impl<T, const N: usize> Vec<T, N> {
/// worst-case performance of *O*(*n*). If you don't need the order of elements
/// to be preserved, use [`swap_remove`] instead. If you'd like to remove
/// elements from the beginning of the `Vec`, consider using
/// [`VecDeque::pop_front`] instead.
/// [`Deque::pop_front`] instead.
///
/// [`swap_remove`]: Vec::swap_remove
/// [`VecDeque::pop_front`]: crate::VecDeque::pop_front
/// [`Deque::pop_front`]: crate::Deque::pop_front
///
/// # Panics
///
Expand Down Expand Up @@ -853,7 +853,7 @@ impl<const N: usize> fmt::Write for Vec<u8, N> {

impl<T, const N: usize> Drop for Vec<T, N> {
fn drop(&mut self) {
// We drop each element used in the vector by turning into a &mut[T]
// We drop each element used in the vector by turning into a `&mut [T]`.
unsafe {
ptr::drop_in_place(self.as_mut_slice());
}
Expand Down

0 comments on commit 23973f6

Please sign in to comment.