summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-04 00:37:41 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-04 00:37:41 +0100
commitd21d4aa636ecf32d47fd667bf97cb4f68d590479 (patch)
tree630444a2806be98555992312f9d3cb0cdc4756b4 /src
parenttake initial capacity in init function (diff)
downloadc-hashtable-d21d4aa636ecf32d47fd667bf97cb4f68d590479.tar.gz
c-hashtable-d21d4aa636ecf32d47fd667bf97cb4f68d590479.tar.bz2
c-hashtable-d21d4aa636ecf32d47fd667bf97cb4f68d590479.zip
update zig version
Diffstat (limited to 'src')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 3a94dee..bc1d662 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -38,6 +38,6 @@ test "removing element" {
     const data: i32 = 4;
     _ = hashtable.hashtable_put(ht, @constCast("key"), @constCast(&data));
     _ = hashtable.hashtable_remove(ht, @constCast("key"));
-    const res: ?*anyopaque = hashtable.hashtable_get(ht, @constCast("key"));
+    const res = hashtable.hashtable_get(ht, @constCast("key"));
     try std.testing.expectEqual(null, res);
 }