From 888be3da6ff5387743bd7466d1eb8c39860b311d Mon Sep 17 00:00:00 2001 From: dsm9000 <141950989+dsm9000@users.noreply.github.com> Date: Fri, 25 Aug 2023 13:33:07 -0400 Subject: [PATCH] misc. corrections to extend() and tests --- sdlib/d/gc/tcache.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdlib/d/gc/tcache.d b/sdlib/d/gc/tcache.d index 4aac0bdb1..022ab5f01 100644 --- a/sdlib/d/gc/tcache.d +++ b/sdlib/d/gc/tcache.d @@ -472,7 +472,7 @@ unittest extend { assert(!threadCache.extend(p0[0 .. 100], 16285)); assert(!threadCache.extend(p0[50 .. 100], 16285)); - // Extend by size zero is permitted if capacity>0, but has no effect: + // Extend by size zero is permitted but has no effect: assert(threadCache.extend(p0[100 .. 100], 0)); assert(threadCache.extend(p0[0 .. 100], 0)); assert(threadCache.getCapacity(p0[0 .. 100]) == 16384);