Skip to content

Commit

Permalink
fix error in reserve_exact docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
JSorngard committed Jan 9, 2024
1 parent bf5e773 commit fd2676d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/zalgo_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,8 @@ impl ZalgoString {
///
/// Same as [`String::reserve_exact`].
///
/// Unlike [`reserve`](ZalgoString::reserve), this will not deliberately over-allocate to speculatively avoid frequent allocations.
/// Unlike [`reserve`](ZalgoString::reserve), this will not deliberately over-allocate
/// to speculatively avoid frequent allocations.
/// After calling `reserve_exact`, capacity will be equal to or greater than `self.len() + additional`.
///
/// Does nothing if the capacity is already sufficient.
Expand Down

0 comments on commit fd2676d

Please sign in to comment.