mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
dont use std::endl in examples
This commit is contained in:
parent
49afa391e5
commit
864da41e8a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user