Skip to content

Commit 7d1571b

Browse files
authored
Merge pull request #4347 from ntrel/edition-fixes
[spec/editions] Fix generating HTML & links
2 parents 37e5e35 + 0179c45 commit 7d1571b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

posix.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ SPEC_ROOT=$(addprefix spec/, \
322322
const3 function operatoroverloading template template-mixin contracts \
323323
version traits errors unittest garbage float iasm ddoc \
324324
interfaceToC cpp_interface objc_interface portability entity memory-safe-d \
325-
abi simd betterc importc ob windows glossary legacy)
325+
abi simd betterc importc ob windows glossary legacy editions)
326326
SPEC_DD=$(addsuffix .dd,$(SPEC_ROOT))
327327

328328
CHANGELOG_FILES:=$(basename $(subst _pre.dd,.dd,$(wildcard changelog/*.dd)))

spec/editions.dd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ features. Editions are a module level feature, i.e. various sections
1010
of a module cannot be set to different editions.
1111
)
1212

13-
$(P The edition is set by default, by putting it in the $(GLINK2 module, ModuleDeclartion),
13+
$(P The edition is set either by default, by putting it in the $(GLINK2 module, ModuleDeclaration),
1414
or with the $(TT -edition) command line switch.
1515
)
1616

1717
$(P
18-
Editions are meant to be backwards and forwards compatible; it makes possible a D
18+
Editions are meant to be backwards and forwards compatible; it makes it possible for a D
1919
module targeting one edition to import a D module targeting any other edition.
2020
A template must obey the rules of the edition targeted by the module in which it
2121
is defined, not the module in which it is instantiated. Compatibility is at the
@@ -31,7 +31,7 @@ $(GNAME Edition):
3131
$(GLINK2 lex, DecimalInteger)
3232
)
3333

34-
$(H2 WWhat can editions do?)
34+
$(H2 What can editions do?)
3535

3636
$(UL
3737
$(LI Deleting existing features -
@@ -71,9 +71,9 @@ $(P An edition level is determined by:)
7171

7272
$(OL
7373
$(LI an explicit 4 digit number corresponding to the year in which the desired edition was released)
74-
$(LI if no edition is specified, and there is no $(GLINK2 ModuleDeclaration) in the source code,
74+
$(LI if no edition is specified, and there is no $(GLINK2 module, ModuleDeclaration) in the source code,
7575
the edition used is the $(B Baseline Edition), which corresponds to 2023.)
76-
$(LI if no edition is specified, and there is a $(GLINK2 ModuleDeclaration) in the source code,
76+
$(LI if no edition is specified, and there is a $(GLINK2 module, ModuleDeclaration) in the source code,
7777
the edition used is the year the compiler was released.)
7878
)
7979

spec/spec.ddoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ $(SUBNAV_TEMPLATE
109109
$(ROOT_DIR)spec/ob.html, Live Functions,
110110
$(ROOT_DIR)spec/windows.html, Windows Programming,
111111
$(ROOT_DIR)spec/glossary.html, Glossary,
112-
$(ROOT_DIR)spec/legacy.html, Legacy Code
112+
$(ROOT_DIR)spec/legacy.html, Legacy Code,
113+
$(ROOT_DIR)spec/editions.html, Editions
113114
)
114115
)
115116
)

0 commit comments

Comments
 (0)