Skip to content

Commit eaec863

Browse files
committed
Documentation: Don't use std:: in examples
We don't use `std::swap()`, so don't mention it in documentation :^)
1 parent fcb45f4 commit eaec863

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Documentation/CodingStyle.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -339,26 +339,25 @@ In C++ implementation files, do not use "using" declarations of any kind to impo
339339
```cpp
340340
// File.cpp
341341
342-
std::swap(a, b);
343-
c = std::numeric_limits<int>::max()
342+
Core::ArgsParser args_parser;
344343
```
345344

346345
###### Wrong:
347346

348347
```cpp
349348
// File.cpp
350349

351-
using std::swap;
352-
swap(a, b);
350+
using Core::ArgsParser;
351+
ArgsParser args_parser;
353352
```
354353

355354
###### Wrong:
356355

357356
```cpp
358357
// File.cpp
359358

360-
using namespace std;
361-
swap(a, b);
359+
using namespace Core;
360+
ArgsParser args_parser;
362361
```
363362

364363
### Types

0 commit comments

Comments
 (0)