Skip to content

Commit b285392

Browse files
authored
Merge pull request #2077 from wilzbach/uda-spelling
Fix spelling: s/user defined/user-defined/ merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2 parents 1889416 + 8369893 commit b285392

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

comparison.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $(ITEMIZE
1818
$(A lazy-evaluation.html, Lazy function argument evaluation),
1919
$(A spec/function.html#interpretation, Compile time function evaluation),
2020
$(A spec/function.html#pseudo-member, Uniform Function Call Syntax),
21-
$(A spec/attribute.html#UserDefinedAttribute, User Defined Attributes)
21+
$(A spec/attribute.html#UserDefinedAttribute, User-Defined Attributes)
2222
),
2323
Arrays
2424
$(ITEMIZE

lazy-evaluation.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ $(CONSOLE
185185
0123456789
186186
)
187187

188-
$(P More complex user defined control structures are possible.
188+
$(P More complex user-defined control structures are possible.
189189
Here's a method to create a switch like structure:
190190
)
191191

overview.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ $(SECTION3 $(LNAME2 features_to_keep, Transitioning to D),
206206

207207
$(LI $(B Operator overloading).
208208
D programs can overload operators enabling
209-
extension of the basic types with user defined types.
209+
extension of the basic types with user-defined types.
210210
)
211211

212212
$(LI $(B Template Metaprogramming).

pretod.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ while (1)
575575
<hr><!-- -------------------------------------------- -->
576576
$(H3 <a name="staticassert">#error and Static Asserts</a>)
577577

578-
$(P Static asserts are user defined checks made at compile time;
578+
$(P Static asserts are user-defined checks made at compile time;
579579
if the check fails the compile issues an error and fails.
580580
)
581581

spec/attribute.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ $(P
676676
Note that the class is still abstract and cannot be instantiated directly.
677677
)
678678

679-
$(H2 $(LNAME2 uda, User Defined Attributes))
679+
$(H2 $(LNAME2 uda, User-Defined Attributes))
680680

681681
$(GRAMMAR
682682
$(GNAME UserDefinedAttribute):
@@ -688,7 +688,7 @@ $(GNAME UserDefinedAttribute):
688688
)
689689

690690
$(P
691-
User Defined Attributes (UDA) are compile-time expressions that can be attached
691+
User-Defined Attributes (UDA) are compile-time expressions that can be attached
692692
to a declaration. These attributes can then be queried, extracted, and manipulated
693693
at compile time. There is no runtime component to them.
694694
)
@@ -734,7 +734,7 @@ pragma(msg, __traits(getAttributes, s)); // prints tuple('c')
734734
---
735735

736736
$(P
737-
If there are no user defined attributes for the symbol, an empty tuple is returned.
737+
If there are no user-defined attributes for the symbol, an empty tuple is returned.
738738
The expression tuple can be turned into a manipulatable tuple:
739739
)
740740

@@ -771,7 +771,7 @@ pragma(msg, __traits(getAttributes, typeof(a))); // prints tuple("hello")
771771
---
772772

773773
$(P
774-
Of course, the real value of UDA's is to be able to create user defined types with
774+
Of course, the real value of UDA's is to be able to create user-defined types with
775775
specific values. Having attribute values of basic types does not scale.
776776
The attribute tuples can be manipulated like any other tuple, and can be passed as
777777
the argument list to a template.

spec/property.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ $(D object.TypeInfo_Class)).)
232232
$(P $(CODE .classinfo) applied to an interface gives the information for the
233233
interface, not the class it might be an instance of.)
234234

235-
$(H2 $(LNAME2 classproperties, User Defined Properties))
235+
$(H2 $(LNAME2 classproperties, User-Defined Properties))
236236

237-
$(P User defined properties can be created using $(LINK2 function.html#property-functions, Property Functions).)
237+
$(P User-defined properties can be created using $(LINK2 function.html#property-functions, Property Functions).)
238238

239239
$(SPEC_SUBNAV_PREV_NEXT type, Types, attribute, Attributes)
240240
)

spec/traits.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,12 +438,12 @@ $(H2 $(GNAME getAliasThis))
438438

439439
$(SECTION2 $(GNAME getAttributes),
440440
$(P
441-
Takes one argument, a symbol. Returns a tuple of all attached user defined attributes.
441+
Takes one argument, a symbol. Returns a tuple of all attached user-defined attributes.
442442
If no UDA's exist it will return an empty tuple.
443443
)
444444

445445
$(P
446-
For more information, see: $(DDSUBLINK spec/attribute, uda, User Defined Attributes)
446+
For more information, see: $(DDSUBLINK spec/attribute, uda, User-Defined Attributes)
447447
)
448448

449449
---
@@ -507,7 +507,7 @@ $(SECTION2 $(GNAME getFunctionAttributes),
507507
$(P
508508
Takes one argument which must either be a function symbol, function literal,
509509
or a function pointer. It returns a string tuple of all the attributes of
510-
that function $(B excluding) any user defined attributes (UDAs can be
510+
that function $(B excluding) any user-defined attributes (UDAs can be
511511
retrieved with the $(RELATIVE_LINK2 get-attributes, getAttributes) trait).
512512
If no attributes exist it will return an empty tuple.
513513
)

spec/type.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $(H2 $(LEGACY_LNAME2 Derived Data Types, derived-data-types, Derived Data Types)
4747

4848
$(P $(DDSUBLINK spec/arrays, strings, $(I Strings)) are a special case of arrays.)
4949

50-
$(H2 $(LEGACY_LNAME2 User Defined Types, user-defined-types, User Defined Types))
50+
$(H2 $(LEGACY_LNAME2 User Defined Types, user-defined-types, User-Defined Types))
5151

5252
$(UL
5353
$(LI alias)

0 commit comments

Comments
 (0)