From 4150b2bb845474fc04b085759f7ed73f2cfa0232 Mon Sep 17 00:00:00 2001 From: jmh530 Date: Tue, 3 Oct 2017 09:42:28 -0400 Subject: [PATCH] Update iteration.d UT comment --- std/algorithm/iteration.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/algorithm/iteration.d b/std/algorithm/iteration.d index 2598dd879..a8b2b2fbf 100644 --- a/std/algorithm/iteration.d +++ b/std/algorithm/iteration.d @@ -1116,11 +1116,11 @@ if (is(typeof(unaryFun!predicate))) int[] arr = [ 1, 2, 3, 4, 5 ]; - // Sum all elements + // Filter below 3 auto small = filter!(a => a < 3)(arr); assert(equal(small, [ 1, 2 ])); - // Sum again, but with Uniform Function Call Syntax (UFCS) + // Filter again, but with Uniform Function Call Syntax (UFCS) auto sum = arr.filter!(a => a < 3); assert(equal(sum, [ 1, 2 ]));