Skip to content

Commit 8274dc0

Browse files
authored
[spec/attribute] Tweak groups (#3560)
* [spec/attribute] Tweak groups Add subheading for synchronized under Shared Storage Attributes rather than just a link in the grammar. That way it appears in the TOC. Rename Class Attributes to OOP Attributes as some of them also apply to interfaces. * Update spec/attribute.dd Keep existing class anchor
1 parent c686add commit 8274dc0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/attribute.dd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $(GNAME Attribute):
3131
$(RELATIVE_LINK2 scope, $(D scope))
3232
$(RELATIVE_LINK2 shared, $(D shared))
3333
$(RELATIVE_LINK2 static, $(D static))
34-
$(DDSUBLINK spec/class, synchronized-classes, `synchronized`)
34+
$(RELATIVE_LINK2 synchronized, `synchronized`)
3535

3636
$(GNAME FunctionAttributeKwd):
3737
$(RELATIVE_LINK2 nothrow, $(D nothrow))
@@ -572,6 +572,10 @@ $(H3 $(LNAME2 gshared, $(D __gshared) Attribute))
572572

573573
$(P $(D __gshared) is disallowed in `@safe` code.)
574574

575+
$(H3 $(LNAME2 synchronized, $(D @synchronized) Attribute))
576+
577+
$(P See $(DDSUBLINK spec/class, synchronized-classes, Synchronized Classes).)
578+
575579

576580
$(H2 $(LNAME2 disable, $(D @disable) Attribute))
577581

@@ -907,7 +911,7 @@ void main() @nogc
907911
)
908912

909913

910-
$(H2 $(LNAME2 class-attributes, Class Attributes))
914+
$(H2 $(LNAME2 class-attributes, OOP Attributes))
911915

912916
$(H3 $(LNAME2 abstract, $(D abstract) Attribute))
913917

0 commit comments

Comments
 (0)