authorgravatar for andreas@arvidsson.iochip2n <andreas@arvidsson.io> 2022-02-18 14:02:01+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-18 13:47:38-05:00
logab43c045edc16d90679810d0384096c859f51a9f
tree26895f6f973a704fa8ef9f7005a0dc1f16229e38
parent5af9d0c603fa5a4e318326a6d2603131f5da4138

Fix incorrect documentation for std.HashMap.remove()


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

lib/std/hash_map.zig+2-1
...@@ -629,7 +629,8 @@ pub fn HashMap(...@@ -629,7 +629,8 @@ pub fn HashMap(
629 }629 }
630630
631 /// If there is an `Entry` with a matching key, it is deleted from631 /// If there is an `Entry` with a matching key, it is deleted from
632 /// the hash map, and then returned from this function.632 /// the hash map, and this function returns true. Otherwise this
633 /// function returns false.
633 pub fn remove(self: *Self, key: K) bool {634 pub fn remove(self: *Self, key: K) bool {
634 return self.unmanaged.removeContext(key, self.ctx);635 return self.unmanaged.removeContext(key, self.ctx);
635 }636 }