Skip to content

Commit 26f7cd6

Browse files
Dawn Perchikzygoloid
authored andcommitted
[stringbuf.members] Minor fixes to P0408R7 wording.
"str()" should be "str"; we're talking about all str member functions here. Add comma after "For efficiency reasons". "i.e." -> "e.g." since we're describing an example case.
1 parent ad685c4 commit 26f7cd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/iostreams.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7697,7 +7697,7 @@
76977697
Characters can be initialized by writing to the stream,
76987698
by constructing the \tcode{basic_stringbuf}
76997699
passing a \tcode{basic_string} argument, or
7700-
by calling one of the \tcode{str()} member functions
7700+
by calling one of the \tcode{str} member functions
77017701
passing a \tcode{basic_string} as an argument.
77027702
In the latter case, all characters initialized prior to the call
77037703
are now considered uninitialized
@@ -7732,10 +7732,10 @@
77327732

77337733
\pnum
77347734
\begin{note}
7735-
For efficiency reasons
7735+
For efficiency reasons,
77367736
stream buffer operations might violate invariants of \tcode{buf}
77377737
while it is held encapsulated in the \tcode{basic_stringbuf},
7738-
i.e., by writing to characters in the range
7738+
e.g., by writing to characters in the range
77397739
\range{\tcode{buf.data() + buf.size()}}{\tcode{buf.data() + buf.capacity()}}.
77407740
All operations retrieving a \tcode{basic_string} from \tcode{buf}
77417741
ensure that the \tcode{basic_string} invariants hold on the returned value.

0 commit comments

Comments
 (0)