Skip to content

Commit d47264d

Browse files
committed
Fix foreach index types
1 parent 202f0ce commit d47264d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/statement.dd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ $(P
485485
If there are
486486
two variables declared, the first is said to be the $(I index)
487487
and the second is said to be the $(I value). The $(I index)
488-
must be of $(D int), $(D uint) or $(D size_t) type,
489-
it cannot be $(I ref),
488+
must be of `int`, `uint`, `long` or `ulong` type,
489+
it cannot be `ref`,
490490
and it is set to be the index of the array element.
491491
)
492492
--------------
@@ -585,7 +585,7 @@ $(H3 $(LNAME2 foreach_over_associative_arrays, Foreach over Associative Arrays))
585585
two variables declared, the first is said to be the $(I index)
586586
and the second is said to be the $(I value). The $(I index)
587587
must be of the same type as the indexing type of the associative
588-
array. It cannot be $(I ref),
588+
array. It cannot be `ref`,
589589
and it is set to be the index of the array element.
590590
The order in which the elements of the array are iterated over is unspecified
591591
for $(D foreach). $(D foreach_reverse) for associative arrays
@@ -855,7 +855,8 @@ $(P
855855
If there are
856856
two symbols declared, the first is the $(I index variable)
857857
and the second is the $(I element alias). The index
858-
must be of $(D int) or $(D uint) type, it cannot be `ref`,
858+
must be of `int`, `uint`, `long` or `ulong` type,
859+
it cannot be `ref`,
859860
and it is set to the index of each sequence element.
860861
)
861862
$(P Example:)

0 commit comments

Comments
 (0)