Skip to content

Commit

Permalink
[string.capacity] Remove parentheses from "reserve()"
Browse files Browse the repository at this point in the history
It's very confusing to talk about `reserve()` when describing a call to
`reserve(size_type)`, given that the overload `reserve()` also exists.
  • Loading branch information
jwakely committed Nov 10, 2023
1 parent 1ec1d9e commit ebe4e3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/strings.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3009,8 +3009,8 @@
\effects
A directive that informs a \tcode{basic_string} of a planned change in size,
so that the storage allocation can be managed accordingly.
After
\tcode{reserve()},
Following a call to
\tcode{reserve},
\tcode{capacity()}
is greater or equal to the argument of
\tcode{reserve}
Expand All @@ -3019,7 +3019,7 @@
\tcode{capacity()}
otherwise.
Reallocation happens at this point if and only if
the current capacity is less than the argument of \tcode{reserve()}.
the current capacity is less than the argument of \tcode{reserve}.

\pnum
\throws
Expand Down

0 comments on commit ebe4e3c

Please sign in to comment.