From 13a7b8586a600c117cc2d090a283e5a6344d42c4 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Thu, 2 May 2019 17:43:51 -0700 Subject: [PATCH] std.HashMap: make ensureCapacityExact private --- std/hash_map.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/hash_map.zig b/std/hash_map.zig index 31750d1106..427c3860f6 100644 --- a/std/hash_map.zig +++ b/std/hash_map.zig @@ -158,7 +158,7 @@ pub fn HashMap(comptime K: type, comptime V: type, comptime hash: fn (key: K) u3 /// Sets the capacity to the new capacity if the new /// capacity is greater than the current capacity. /// New capacity must be a power of two. - pub fn ensureCapacityExact(self: *Self, new_capacity: usize) !void { + fn ensureCapacityExact(self: *Self, new_capacity: usize) !void { const is_power_of_two = new_capacity & (new_capacity-1) == 0; assert(is_power_of_two);