Skip to content

Commit 3f5605b

Browse files
authored
[trivial] Use PANEL for note about C++ class syntax (#3672)
1 parent 868e4e2 commit 3f5605b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/class.dd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,22 @@ class Foo
7777
}
7878
------
7979

80-
$(P Note that there is no trailing $(D ;) after the closing $(D }) of the class
80+
$(PANEL
81+
$(NOTE Unlike C++, there is no trailing $(D ;) after the closing $(D }) of the class
8182
definition.
82-
It is also not possible to declare a variable var like:)
83+
It is also not possible to declare a variable `var` inline:)
8384

8485
------
8586
class Foo { } var;
8687
------
8788

88-
Instead:
89+
Instead, use:
8990

9091
------
9192
class Foo { }
9293
Foo var;
9394
------
95+
)
9496

9597
$(H2 $(LNAME2 access_control, Access Control))
9698

0 commit comments

Comments
 (0)