mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 02:12:04 +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
|
||||
}
|
||||
data := as_bytes(v)
|
||||
if data != nil {
|
||||
if data == nil {
|
||||
return true
|
||||
}
|
||||
for v in data {
|
||||
|
||||
Reference in New Issue
Block a user