From 99776012f04104c4c1509a2ed458389f81870927 Mon Sep 17 00:00:00 2001 From: Aleksandr Treyger <58522003+fieldvoid@users.noreply.github.com> Date: Thu, 13 Feb 2025 20:15:20 -0500 Subject: [PATCH] Update function.dd (Lazy Variadic Functions) Switch the terms "former" and "latter" around. Currently the spec sets "former" to variadic delegate array element access causing evaluation of the other array elements, and "latter" to the lazy variadic array element access only evaluating that element. This is contrary to the example code so we just need to switch the positions of "former" and "latter" in the sentence. --- spec/function.dd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/function.dd b/spec/function.dd index 4a869b98f8..00ad16c734 100644 --- a/spec/function.dd +++ b/spec/function.dd @@ -2509,9 +2509,9 @@ $(H4 $(LNAME2 lazy_variadic_functions, Lazy Variadic Functions)) --- $(P The variadic delegate array differs from using a lazy - variadic array. With the former each array element access + variadic array. With the latter each array element access would evaluate every array element. - With the latter, only the element being accessed would be evaluated.) + With the former, only the element being accessed would be evaluated.) $(SPEC_RUNNABLE_EXAMPLE_RUN ---