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 078be8a commit bf5e773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/zalgo_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ impl ZalgoString {
/// Same as [`String::reserve_exact`].
///
/// Unlike [`reserve`](ZalgoString::reserve), this will not deliberately over-allocate to speculatively avoid frequent allocations.
/// After calling `reserve_exact`, capacity will be equal to `self.len() + additional`.
/// 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 bf5e773

Please sign in to comment.