Skip to content

Commit 9483cb7

Browse files
jwakelytkoeppe
authored andcommitted
[string.capacity] Remove parentheses from "reserve()"
It's very confusing to talk about `reserve()` when describing a call to `reserve(size_type)`, given that the overload `reserve()` also exists.
1 parent 3c5b5b0 commit 9483cb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/strings.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,8 +3009,8 @@
30093009
\effects
30103010
A directive that informs a \tcode{basic_string} of a planned change in size,
30113011
so that the storage allocation can be managed accordingly.
3012-
After
3013-
\tcode{reserve()},
3012+
Following a call to
3013+
\tcode{reserve},
30143014
\tcode{capacity()}
30153015
is greater or equal to the argument of
30163016
\tcode{reserve}
@@ -3019,7 +3019,7 @@
30193019
\tcode{capacity()}
30203020
otherwise.
30213021
Reallocation happens at this point if and only if
3022-
the current capacity is less than the argument of \tcode{reserve()}.
3022+
the current capacity is less than the argument of \tcode{reserve}.
30233023

30243024
\pnum
30253025
\throws

0 commit comments

Comments
 (0)