mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Merge pull request #424 from blakehawkins/no_endl
dont use std::endl in examples
This commit is contained in:
@@ -66,7 +66,7 @@ tab characters, like so:
|
|||||||
|
|
||||||
void func(const int x)
|
void func(const int x)
|
||||||
{
|
{
|
||||||
std::cout << x << std::endl;
|
std::cout << x << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
#### Code Blocks
|
#### Code Blocks
|
||||||
@@ -77,7 +77,7 @@ Please use 4-space indentation to trigger code parsing, rather than [fenced code
|
|||||||
|
|
||||||
void func()
|
void func()
|
||||||
{
|
{
|
||||||
std::cout << "This is code." << std::endl;
|
std::cout << "This is code.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
### Miscellaneous
|
### Miscellaneous
|
||||||
|
|||||||
Reference in New Issue
Block a user