mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-06 13:07:59 +00:00
Merge pull request #1465 from ap29600/reflect_is_nil_fix
Fix logic in `is_nil` procedure
This commit is contained in:
@@ -234,7 +234,7 @@ is_nil :: proc(v: any) -> bool {
|
||||
return true
|
||||
}
|
||||
data := as_bytes(v)
|
||||
if data != nil {
|
||||
if data == nil {
|
||||
return true
|
||||
}
|
||||
for v in data {
|
||||
|
||||
Reference in New Issue
Block a user