From eaec863b94b88da58934da7e7b95dae0ee6713cc Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 25 Nov 2024 09:00:26 -0500 Subject: [PATCH] Documentation: Don't use std:: in examples We don't use `std::swap()`, so don't mention it in documentation :^) --- Documentation/CodingStyle.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/CodingStyle.md b/Documentation/CodingStyle.md index 0de5532eaac..63dd1735e03 100644 --- a/Documentation/CodingStyle.md +++ b/Documentation/CodingStyle.md @@ -339,8 +339,7 @@ In C++ implementation files, do not use "using" declarations of any kind to impo ```cpp // File.cpp -std::swap(a, b); -c = std::numeric_limits::max() +Core::ArgsParser args_parser; ``` ###### Wrong: @@ -348,8 +347,8 @@ c = std::numeric_limits::max() ```cpp // File.cpp -using std::swap; -swap(a, b); +using Core::ArgsParser; +ArgsParser args_parser; ``` ###### Wrong: @@ -357,8 +356,8 @@ swap(a, b); ```cpp // File.cpp -using namespace std; -swap(a, b); +using namespace Core; +ArgsParser args_parser; ``` ### Types