Skip to content

Commit 846aea6

Browse files
authored
Update libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/ignore.char_type.pass.cpp
1 parent 7eb7d12 commit 846aea6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/ignore.char_type.pass.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222

2323
int main(int, char**) {
2424
std::istringstream in("\xF0\x9F\xA4\xA1 Clown Face");
25-
in.ignore(100, '\xA1'); // ignore up to '\xA1' delimiter,
26-
// previously might have ignored to EOF
25+
in.ignore(100, '\xA1'); // Ignore up to '\xA1' delimiter,
26+
// previously might have ignored to EOF.
2727

28-
assert(in.gcount() == 4); // 4 bytes were ignored
29-
assert(in.peek() == ' '); // next character is a space
28+
assert(in.gcount() == 4); // 4 bytes were ignored.
29+
assert(in.peek() == ' '); // Next character is a space.
3030

31-
std::string str; // read the next word
31+
std::string str; // Read the next word.
3232
in >> str;
3333
assert(str == "Clown");
3434

3535
// Parameter value "-1L" doesn't cause ambiguity with the char_type overload.
36-
in.ignore(100, -1L); // ignore up to EOF, which is the default behavior
37-
assert(in.eof()); // stream should be at EOF now
36+
in.ignore(100, -1L); // Ignore up to EOF, which is the default behavior.
37+
assert(in.eof()); // Stream should be at EOF now.
3838
assert(in.gcount() == 5);
3939

4040
return 0;

0 commit comments

Comments
 (0)