Skip to content

Commit da48679

Browse files
ntreldlang-bot
authored andcommitted
Mention C 'spiral rule', not 'right-left rule'
1 parent a2eff80 commit da48679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/declaration.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ int (\*[] x)(char); // C array of pointers to functions
169169
$(RATIONALE
170170
* In D types are straightforward to read from right to left,
171171
unlike in C where parentheses are sometimes required and the type is
172-
read iteratively using the 'right-left' rule.
172+
read iteratively using the clockwise/spiral rule.
173173
* For a C function pointer declaration `a (*b)(c);` a C parser needs
174174
to attempt a type lookup in order to parse it unambiguously - it
175175
could be a call to a function called `a` which returns a function

0 commit comments

Comments
 (0)