authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2019-05-02 17:43:51-07:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2019-05-02 17:43:51-07:00
log13a7b8586a600c117cc2d090a283e5a6344d42c4
tree15dce801e1fb4674d546d0db247fae6189aa046b
parent26591d4f2264c3f6636598dc86d4e4bed528658e

std.HashMap: make ensureCapacityExact private


1 files changed, 1 insertions(+), 1 deletions(-)

std/hash_map.zig+1-1
...@@ -158,7 +158,7 @@ pub fn HashMap(comptime K: type, comptime V: type, comptime hash: fn (key: K) u3...@@ -158,7 +158,7 @@ pub fn HashMap(comptime K: type, comptime V: type, comptime hash: fn (key: K) u3
158 /// Sets the capacity to the new capacity if the new158 /// Sets the capacity to the new capacity if the new
159 /// capacity is greater than the current capacity.159 /// capacity is greater than the current capacity.
160 /// New capacity must be a power of two.160 /// New capacity must be a power of two.
161 pub fn ensureCapacityExact(self: *Self, new_capacity: usize) !void {161 fn ensureCapacityExact(self: *Self, new_capacity: usize) !void {
162 const is_power_of_two = new_capacity & (new_capacity-1) == 0;162 const is_power_of_two = new_capacity & (new_capacity-1) == 0;
163 assert(is_power_of_two);163 assert(is_power_of_two);
164164