mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 03:04:36 +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
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
std::cout << i << std::endl;
|
||||
std::cout << i << '\n';
|
||||
}
|
||||
|
||||
|
||||
// Good Idea
|
||||
for (int i = 0; i < 15; ++i)
|
||||
{
|
||||
std::cout << i << std::endl;
|
||||
std::cout << i << '\n';
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user