From 248031254d92adcd362729417b27e69883086b24 Mon Sep 17 00:00:00 2001 From: Wessel Tip Date: Fri, 12 Sep 2025 12:05:11 +0200 Subject: [PATCH] fix(cpp-convention): Add `namespace x::y` to example --- CPP_CODE_CONVENTION.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CPP_CODE_CONVENTION.md b/CPP_CODE_CONVENTION.md index 2e557d6..07b24e8 100644 --- a/CPP_CODE_CONVENTION.md +++ b/CPP_CODE_CONVENTION.md @@ -187,8 +187,7 @@ than to read. // Header file commentary #pragma once -namespace foo { -namespace bar { +namespace foo::bar { // When forward declaring a class you can choose to use indenting. namespace robot { @@ -207,8 +206,7 @@ private: int the_answer_; }; -} // namespace bar -} // namespace foo +} // namespace foo::bar #endif ```