@@ -42,7 +42,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
4242 {
4343 assert (allocator ! is null , " Allocator must not be null" );
4444 }
45- body
45+ do
4646 {
4747 this .allocator = allocator;
4848 }
@@ -57,7 +57,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
5757 assert (allocator ! is null , " Allocator must not be null" );
5858 assert ((bucketCount & (bucketCount - 1 )) == 0 , " bucketCount must be a power of two" );
5959 }
60- body
60+ do
6161 {
6262 this .allocator = allocator;
6363 initialize(bucketCount);
@@ -79,7 +79,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
7979 {
8080 assert ((bucketCount & (bucketCount - 1 )) == 0 , " bucketCount must be a power of two" );
8181 }
82- body
82+ do
8383 {
8484 initialize(bucketCount);
8585 }
@@ -251,7 +251,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
251251 {
252252 assert (result.length == _length);
253253 }
254- body
254+ do
255255 {
256256 import std.array : appender;
257257 auto app = appender! (K[])();
@@ -283,7 +283,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
283283 {
284284 assert (result.length == _length);
285285 }
286- body
286+ do
287287 {
288288 import std.array : appender;
289289 auto app = appender! (ContainerElementType! (This, V)[])();
0 commit comments