Commit ab43c045ed

chip2n <andreas@arvidsson.io>
2022-02-18 14:02:01
Fix incorrect documentation for std.HashMap.remove()
1 parent 5af9d0c
Changed files (1)
lib
lib/std/hash_map.zig
@@ -629,7 +629,8 @@ pub fn HashMap(
         }
 
         /// If there is an `Entry` with a matching key, it is deleted from
-        /// the hash map, and then returned from this function.
+        /// the hash map, and this function returns true.  Otherwise this
+        /// function returns false.
         pub fn remove(self: *Self, key: K) bool {
             return self.unmanaged.removeContext(key, self.ctx);
         }