Skip to content

Commit

Permalink
docs: tweak docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Aug 26, 2024
1 parent 6fa8917 commit 33fa3b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,8 @@ impl<T> NEVec<T> {
}
}

/// Like [`sort`], sorts the `NEVec` in place but with a given comparison function.
/// Like [`NEVec::sort`], but sorts the `NEVec` with a given comparison
/// function.
///
/// See also [`slice::sort_by`].
///
Expand Down Expand Up @@ -631,8 +632,8 @@ impl<T> NEVec<T> {
}
}

/// Like [`sort`], sorts the `NEVec` in place after first transforming each
/// element into something easily comparable. Beware of expensive key
/// Like [`NEVec::sort`], but sorts the `NEVec` after first transforming
/// each element into something easily comparable. Beware of expensive key
/// functions, as the results of each call are not cached.
///
/// See also [`slice::sort_by_key`].
Expand Down

0 comments on commit 33fa3b1

Please sign in to comment.