Skip to content

Commit c460dee

Browse files
authored
Merge pull request #3745 from dkorpel/named-arg-fixup
Fix named argument documentation
2 parents 9c359ee + 1c44515 commit c460dee

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

spec/expression.dd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ $(H4 $(LNAME2 argument-parameter-matching, Matching Arguments to Parameters))
16451645
)
16461646
$(P
16471647
Any other argument is assigned to the next parameter relative to the preceding argument's parameter.
1648-
It is an error if no such field exists, i.e. when the preceding argument assigns to the last parameter.
1648+
It is an error if no such parameter exists, i.e. when the preceding argument assigns to the last parameter.
16491649
)
16501650
$(P
16511651
Assigning a parameter more than once is an error.
@@ -1655,7 +1655,8 @@ $(H4 $(LNAME2 argument-parameter-matching, Matching Arguments to Parameters))
16551655

16561656
$(H4 $(LNAME2 type-constructor-arguments, Constructing a Type with an Argument List))
16571657
$(P A type can precede a list of arguments.
1658-
See: $(DDSUBLINK spec/struct, struct-literal, Struct Literals)) and $(RELATIVE_LINK2 uniform_construction_syntax, Uniform construction syntax for built-in scalar types))
1658+
See: $(DDSUBLINK spec/struct, struct-literal, Struct Literals) and $(RELATIVE_LINK2 uniform_construction_syntax, Uniform construction syntax for built-in scalar types)
1659+
)
16591660

16601661
$(H3 $(LEGACY_LNAME2 index_operations, index_expressions, Index Operations))
16611662

spec/struct.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ $(H2 $(LEGACY_LNAME2 StructLiteral, struct-literal, Struct Literals))
501501
Any fields not assigned a value are initialized with their respective default initializers.
502502
)
503503
$(NOTE
504-
These rules are consistent with function calls, see $(DDSUBLINK spec/function, argument-parameter-matching, Matching Arguments to Parameters).
504+
These rules are consistent with function calls, see $(DDSUBLINK spec/expression, argument-parameter-matching, Matching Arguments to Parameters).
505505
)
506506
$(P
507507
If there is a union field in the struct, only one

0 commit comments

Comments
 (0)