mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Fix logic in is_nil procedure: a non_nil slice means there is data to check.
This commit is contained in:
@@ -234,7 +234,7 @@ is_nil :: proc(v: any) -> bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
data := as_bytes(v)
|
data := as_bytes(v)
|
||||||
if data != nil {
|
if data == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
for v in data {
|
for v in data {
|
||||||
|
|||||||
Reference in New Issue
Block a user