Skip to content

Commit 6ed5f57

Browse files
author
Colin Robertson
authored
Update algorithm-functions.md
Simplify and clean up output statements.
1 parent 55916c9 commit 6ed5f57

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/standard-library/algorithm-functions.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,20 @@ int main()
115115
cout << "There are not two adjacent elements that are equal."
116116
<< endl;
117117
else
118-
cout << "There are two adjacent elements that are equal."
119-
<< "\n They have a value of "
120-
<< *( result1 ) << "." << endl;
118+
cout << "There are two adjacent elements that are equal.\n"
119+
<< "They have a value of "
120+
<< *( result1 ) << "." << endl;
121121
122122
result2 = adjacent_find( L.begin( ), L.end( ), twice );
123123
if ( result2 == L.end( ) )
124124
cout << "There are not two adjacent elements where the "
125-
<< " second is twice the first." << endl;
125+
<< "second is twice the first." << endl;
126126
else
127127
{
128128
cout << "There are two adjacent elements where "
129-
<< "the second is twice the first."
130-
<< "\n They have values of " << *(result2++);
131-
cout << " & " << *result2 << "." << endl;
129+
<< "the second is twice the first.\n"
130+
<< "They have values of " << *(result2++)
131+
<< " & " << *result2 << "." << endl;
132132
}
133133
}
134134
```

0 commit comments

Comments
 (0)