rename none to null

This commit is contained in:
2026-07-22 00:48:44 +02:00
parent 979a8e5f07
commit 77696e19c9
9 changed files with 20 additions and 19 deletions
+2 -2
View File
@@ -56,14 +56,14 @@ get func(
map @HashMap(K, V, hash_key, keys_eql),
key K,
) ?V {
if (map.count == 0) return none
if (map.count == 0) return null
hash :: normalize(hash_key(key))
idx usize = hash & (map.entries.len - 1)
while true {
entry :: map.entries[idx]
if (entry.hash == 0) return none
if (entry.hash == 0) return null
if (entry.hash == hash and keys_eql(entry.key, key)) {
return entry.value