mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 11:14:35 +03:00
Remove std::endl in examples
This commit is contained in:
@@ -185,14 +185,14 @@ Operations are doubles are typically faster than float. However, in vectorized o
|
|||||||
// Bad Idea
|
// Bad Idea
|
||||||
for (int i = 0; i < 15; i++)
|
for (int i = 0; i < 15; i++)
|
||||||
{
|
{
|
||||||
std::cout << i << std::endl;
|
std::cout << i << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Good Idea
|
// Good Idea
|
||||||
for (int i = 0; i < 15; ++i)
|
for (int i = 0; i < 15; ++i)
|
||||||
{
|
{
|
||||||
std::cout << i << std::endl;
|
std::cout << i << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user