Skip to content

Commit fdc0b46

Browse files
Bolpatntrel
andauthored
Update spec/statement.dd
Co-authored-by: Nick Treleaven <ntrel002@gmail.com>
1 parent 8917fe7 commit fdc0b46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/statement.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,10 @@ $(GNAME OpApplyParameter):
770770

771771
$(P The $(D opApply) and $(D opApplyReverse) member functions can be overloaded.
772772
Selection works similar to overload resolution by
773-
comparing the number of `foreach` variables and number of parameters of `body` and,
774-
if more than one overload remains unique overload,
775-
matching the parameter types of `body` and each $(I ForeachType)
776-
declared in the $(I ForeachStatement) when given.)
773+
comparing the number of `foreach` variables with the number of parameters of `body` and,
774+
if more than one overload remains,
775+
matching each parameter of `body` against each $(I ForeachType)
776+
declared in the $(I ForeachStatement).)
777777

778778
$(BEST_PRACTICE Overload apply functions only with delegates differing in number of parameters
779779
to enable type inference for `foreach` variables.

0 commit comments

Comments
 (0)