Skip to content

Commit

Permalink
misc. corrections to extend() and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsm9000 committed Aug 25, 2023
1 parent 6ebe347 commit 888be3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdlib/d/gc/tcache.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 888be3d

Please sign in to comment.