Skip to content

Commit b7133a4

Browse files
authored
[spec/traits] Fix module/package links (#3539)
Also split module/package grammar into 2 blocks for better formatting.
1 parent f5a60fb commit b7133a4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

spec/module.dd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ $(GNAME ModuleFullyQualifiedName):
104104

105105
$(GNAME ModuleName):
106106
$(GLINK_LEX Identifier)
107-
107+
)
108+
$(GRAMMAR
108109
$(GNAME Packages):
109110
$(GLINK PackageName)
110111
$(GSELF Packages) $(D .) $(GLINK PackageName)

spec/traits.dd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ static assert(!__traits(isTemplate,"string"));
11411141
$(H3 $(GNAME isModule))
11421142

11431143
$(P Takes one argument. If that argument is a symbol that refers to a
1144-
$(DDLINK spec/module, module) then $(D true) is returned, otherwise $(D false).
1144+
$(DDLINK spec/module, Modules, module) then $(D true) is returned, otherwise $(D false).
11451145
$(DDSUBLINK spec/module, package-module, Package modules) are considered to be
11461146
modules even if they have not been directly imported as modules.
11471147
)
@@ -1165,7 +1165,8 @@ static assert(__traits(isModule, std.algorithm.sorting));
11651165
$(H3 $(GNAME isPackage))
11661166

11671167
$(P Takes one argument. If that argument is a symbol that refers to a
1168-
$(DDLINK spec/module, package) then $(D true) is returned, otherwise $(D false).
1168+
$(DDSUBLINK spec/module, PackageName, package) then $(D true) is returned,
1169+
otherwise $(D false).
11691170
)
11701171

11711172
---

0 commit comments

Comments
 (0)