Skip to content

Commit 0851eae

Browse files
author
Colin Robertson
authored
Merge pull request #1091 from EmilEnchev/patch-1
Missing {}
2 parents 57a4213 + 6ed5f57 commit 0851eae

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/standard-library/algorithm-functions.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,21 @@ 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
127+
{
127128
cout << "There are two adjacent elements where "
128-
<< "the second is twice the first."
129-
<< "\n They have values of " << *(result2++);
130-
cout << " & " << *result2 << "." << endl;
129+
<< "the second is twice the first.\n"
130+
<< "They have values of " << *(result2++)
131+
<< " & " << *result2 << "." << endl;
132+
}
131133
}
132134
```
133135

0 commit comments

Comments
 (0)