Skip to content

Commit 8567e2a

Browse files
committed
Fix comments in specialization id example
Some of the comments for this example were accidentally deleted when running clang-format in 8a54f69. Fix them. We can also pack more words on each line since clang-format reduced the indentation.
1 parent 902cd82 commit 8567e2a

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

adoc/code/specialization_id.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ namespace {
4141
constexpr specialization_id<int> same_name { 12 }; // OK
4242
}
4343
inline namespace other {
44-
int same_name; // ILLEGAL: shadows "specialization_id"
45-
// variable with same name in enclosing
46-
// namespace scope
44+
int same_name; // ILLEGAL: shadows "specialization_id" variable with same name in
45+
// enclosing namespace scope
4746
}
4847
inline namespace {
49-
namespace foo { // ILLEGAL: namespace name shadows "::foo"
48+
namespace foo { // ILLEGAL: namespace name shadows "::foo" namespace which contains
49+
// "specialization_id" variable.
5050
} // namespace foo
51-
// "specialization_id" variable.
5251
} // namespace

0 commit comments

Comments
 (0)