fix(cpp-convention): Add namespace x::y to example

This commit is contained in:
2025-09-12 12:05:11 +02:00
parent 978b5581e0
commit 248031254d

View File

@@ -187,8 +187,7 @@ than to read.
// Header file commentary // Header file commentary
#pragma once #pragma once
namespace foo { namespace foo::bar {
namespace bar {
// When forward declaring a class you can choose to use indenting. // When forward declaring a class you can choose to use indenting.
namespace robot { namespace robot {
@@ -207,8 +206,7 @@ private:
int the_answer_; int the_answer_;
}; };
} // namespace bar } // namespace foo::bar
} // namespace foo
#endif #endif
``` ```